update 更新druid配置 独立配置更明显

This commit is contained in:
疯狂的狮子li 2021-07-24 18:29:12 +08:00
parent 1dfc9bbaa6
commit b539939a90
2 changed files with 14 additions and 4 deletions

View File

@ -42,6 +42,10 @@ spring:
testOnReturn: false
# 注意这个值和druid原生不一致默认启动了stat
filters: stat
--- # druid 配置
spring:
datasource:
druid:
webStatFilter:
enabled: true
@ -63,7 +67,9 @@ spring:
wall:
config:
multi-statement-allow: true
# redis 配置
--- # redis 配置
spring:
redis:
# 地址
host: localhost
@ -78,7 +84,6 @@ spring:
# 是否开启ssl
ssl: false
--- # redisson 客户端配置
redisson:
# 线程池数量
threads: 16

View File

@ -42,6 +42,10 @@ spring:
testOnReturn: false
# 注意这个值和druid原生不一致默认启动了stat
filters: stat
--- # druid 配置
spring:
datasource:
druid:
webStatFilter:
enabled: true
@ -63,7 +67,9 @@ spring:
wall:
config:
multi-statement-allow: true
# redis 配置
--- # redis 配置
spring:
redis:
# 地址
host: 172.30.0.48
@ -78,7 +84,6 @@ spring:
# 是否开启ssl
ssl: false
--- # redisson 客户端配置
redisson:
# 线程池数量
threads: 16