This commit is contained in:
张良(004796)
2024-03-13 17:11:56 +08:00
parent 01c813137b
commit 367ea437a2
3 changed files with 8 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ spring:
driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
url: jdbc:mysql://localhost:4306/xq?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
url: jdbc:mysql://10.0.12.11:4306/xq?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username: root
password: 383200134
# 从库数据源
@@ -52,7 +52,7 @@ spring:
spring:
redis:
# 地址
host: localhost
host: 10.0.12.11
# 端口默认为6379
port: 9379
# 数据库索引
@@ -64,11 +64,11 @@ spring:
# 是否开启ssl
ssl: false
rabbitmq:
addresses: 127.0.0.1 #ip地址
addresses: 10.0.12.11 #ip地址
username: admin # 账号
password: 383200134 # 密码
port: 5672
virtual-host: /xq
virtual-host: /cai-dev
redisson:
# redis key前缀
keyPrefix: