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

View File

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