opt:回传倒出优化

This commit is contained in:
zhangzq
2025-02-13 14:00:26 +08:00
parent 64290ef2a6
commit 28874259d9
4 changed files with 6 additions and 22 deletions

View File

@@ -84,7 +84,7 @@ spring:
reset-enable: false
filters:
DruidFilter,stat
url: jdbc:mysql://localhost:3306/lms?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true
url: jdbc:mysql://192.168.10.45:3306/lz_lms?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true
username: root
password: 123456
rules:
@@ -94,8 +94,8 @@ spring:
type: Static
props:
#接口有事务,读写分离不生效,默认全部使用主库
write-data-source-name: master
read-data-source-names: slave
write-data-source-name: slave
read-data-source-names: master
#负载均衡算法名称
load-balancer-name: round-robin