From 310d316f5346da96cc990e6bb29ce9bc6162fa66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9C=9F=E8=B1=86?= <89921218@qq.com> Date: Thu, 20 Jul 2017 10:40:37 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20=E5=B8=B8=E8=A7=81=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 常见问题.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")