From fe4e04f330c8a03fa938ddd0b48046c80c95c7d4 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 20 Feb 2021 18:02:25 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=A2=9E=E5=8A=A0=20druid=202.=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20skywalking?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/main/resources/application-dev.yaml b/src/main/resources/application-dev.yaml index 3e697b6a0..65a1645df 100644 --- a/src/main/resources/application-dev.yaml +++ b/src/main/resources/application-dev.yaml @@ -11,6 +11,27 @@ spring: driver-class-name: com.mysql.jdbc.Driver username: root password: 3WLiVUBEwTbvAfsh + druid: + web-stat-filter: + enabled: true + stat-view-servlet: + enabled: true + # 设置白名单,不填则允许所有访问 + allow: + url-pattern: /druid/* + # 控制台管理用户名和密码 + login-username: + login-password: + filter: + stat: + enabled: true + # 慢 SQL 记录 + log-slow-sql: true + slow-sql-millis: 100 + merge-sql: true + wall: + config: + multi-statement-allow: true # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 redis: