先说问题,
springboot环境下mysql数据库,mybatis批量更新sql
打印出的sql直接可以运行,但是代码中报错
Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax。
最后排查问题
yml配置文件中没加
allowMultiQueries=true
mysql的url配置后加上
&allowMultiQueries=true
先说问题,
springboot环境下mysql数据库,mybatis批量更新sql
打印出的sql直接可以运行,但是代码中报错
Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax。
最后排查问题
yml配置文件中没加
allowMultiQueries=true
mysql的url配置后加上
&allowMultiQueries=true