报错提示信息:SQL state [null]; error code [0]; sql injection violation, dbType mysql, druid-version 1.2.5, multi-statement not allow
项目使用的是Springboot+MybatisPlus+dynamic-datasource-spring-boot-starter+druid+MySQL项目
是因为配置多数据源的时候没有该druid连接池配置允许批量执行SQL
修改此项配置解决问题:

# multi-statement-allow 允许批量执行SQL
spring.datasource.dynamic.druid.wall.multi-statement-allow = true

相关文章:

  • 2022-12-23
  • 2022-02-05
  • 2021-09-09
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-20
  • 2022-12-23
  • 2022-01-02
  • 2021-05-16
  • 2022-03-07
  • 2022-01-11
  • 2022-12-23
相关资源
相似解决方案