Skip to content

Commit

Permalink
开启 SQL 监控
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Dec 20, 2024
1 parent be19e77 commit 8004bf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ spring.datasource.password=sparklepwd
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.druid.max-active=100
spring.datasource.druid.initial-size=5
spring.datasource.druid.filters=stat
spring.datasource.druid.filter.stat.enabled=true
spring.datasource.druid.filter.stat.log-slow-sql=true
spring.datasource.druid.filter.stat.slow-sql-millis=1500
spring.datasource.druid.aop-patterns="com.ghostchu.sparkle.*"

druid.management.username=admin
druid.management.password=admin

Expand Down

0 comments on commit 8004bf1

Please sign in to comment.