mybatis want to update set the table with foreach tag batch
Below is mapper.xml
<update id="updateMonitorById" parameterType="java.util.List">
<foreach collection="list" item="bean" index="index" open="" close="" separator=";">
UPDATE dt_monitor
<set>
account_name = #{bean.companyAccount},
sip_name = #{bean.sipName}
</set>
<where>
company_id = #{bean.companyId}
</where>
ORDER BY update_time desc limit 1
</foreach>
</update>
List when the incoming number greater than 1 on the error.
Later found to be the reason the configuration database
together with the configuration database in the connection address
& allowMultiQueries = true
jdbcDriver=com.mysql.jdbc.Driver
jdbcUrl=jdbc:mysql:///cake?characterEncoding=utf-8&allowMultiQueries=true
jdbcusername=root
jdbcpassword=1