mybatis批量更新出现he error occurred while setting parameters

 

当你更新一条时,不会发生问题,但是执行多条就出现了错误
原因是mysql 配置jdbc:driver 应该添加&allowMultiQueries=true
url:jdbc:mysql://localhost:3306/mei?characterEncoding=utf8&allowMultiQueries=true

posted @ 2020-07-24 17:15  jassy  阅读(593)  评论(0编辑  收藏  举报