mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Updated 常见问题 (markdown)
+2
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user