默认显示Sql监控

This commit is contained in:
RuoYi
2019-03-08 15:25:24 +08:00
parent 9531875401
commit a9f378218b
3 changed files with 7 additions and 4 deletions

View File

@ -34,7 +34,9 @@ spring:
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
@ -42,6 +44,7 @@ spring:
url-pattern: /monitor/druid/*
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000