diff --git a/常见问题.md b/常见问题.md index bed1fc7..281278a 100644 --- a/常见问题.md +++ b/常见问题.md @@ -169,13 +169,14 @@ https://github.com/alibaba/druid/wiki/配置druid内置的log实现 # 31. 如何在Spring Boot中添加自定义WallConfig、Filter ? -使用Druid Spring Boot Starter 的 ```DruidDataSourceBuilder``` +1. 添加配置 ```xml spring.datasource.druid.wall.config.multiStatementAllow=false spring.datasource.druid.wall.config.truncateAllow=true ... other ``` +2. 使用Druid Spring Boot Starter 的 ```DruidDataSourceBuilder```扩展 Druid 配置 ```java @Bean @ConfigurationProperties("spring.datasource.druid.wall.config")