mybatisでupdateを複数回実行
1184 ワード
まずリンクデータベースのurlにmysqlを入れなければなりません
最後のallowMultiQueries=true
jdbc.url=jdbc:mysql://localhost:3306/springmvc?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
最後のallowMultiQueries=true
id="updateItems" parameterType="QueryVo">
"itemsList" item="item" separator=";">
update items
set name =#{item.name}
where id = #{item.id}