解决:添加以下配置信息
spring:
datasource:
druid:
filter:
wall:
enabled: true
config:
none-base-statement-allow: true
排查:
com.alibaba.druid.wall.spi.WallVisitorUtils#preVisitCheck(WallVisitor visitor, SQLObject x)
WallConfig config = visitor.getProvider().getConfig();
...
else {
//默认为false
allow = config.isNoneBaseStatementAllow();
errorCode = ErrorCode.NONE_BASE_STATEMENT_NOT_ALLOW;
denyMessage = x.getClass() + " not allow";
}
if (!allow) {
addViolation(visitor, errorCode, denyMessage, x);
}
...