-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.2.0 wall过滤器配置multi-statement-allow: true不起作用 #640
Comments
yupeishan
changed the title
4.2.0 wall过滤器配置multi-statement-allow: true不起作用 #5916
4.2.0 wall过滤器配置multi-statement-allow: true不起作用
May 15, 2024
以下为mybatis执行的语句
|
另外,配置文件中我只配置了master数据源,其他数据源通过JDBC的方式在启动时进行加载 |
源头应该是DsConfigUtil的getSetterMethods,只获取了当前类的set get方法,没有读取到父类的get set |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enviroment
JDK Version(required): 1.8
SpringBoot Version(required): 2.5
dynamic-datasource-spring-boot-starter Version(required): 4.2
druid Version(optional): 1.2.16
Describe what happened
您好,请问wall过滤器中如何允许多重语句的执行,也就是multi-statement-allow 我试过在spring.datasource.druid.filter.wall下面配置,或者在spring.datasource.dynamic.druid.wall下面配置,以及都进行配置,均不起作用,执行多重语句时仍然出现报错,
Cause: java.sql.SQLException: sql injection violation, dbType mysql, druid-version 1.2.16, multi-statement not allow
jdbc连接中也配置了allowMultiQueries=true
yml
The text was updated successfully, but these errors were encountered: