|
|
|
|
@ -1,15 +1,49 @@
|
|
|
|
|
# 数据源配置
|
|
|
|
|
spring:
|
|
|
|
|
# redis 配置
|
|
|
|
|
redis:
|
|
|
|
|
# 地址
|
|
|
|
|
# host: 175.27.215.92
|
|
|
|
|
host: 127.0.0.1
|
|
|
|
|
# 端口,默认为6379
|
|
|
|
|
port: 6379
|
|
|
|
|
# 数据库索引
|
|
|
|
|
database: 6
|
|
|
|
|
# 密码
|
|
|
|
|
password: redis@2023
|
|
|
|
|
# 连接超时时间
|
|
|
|
|
timeout: 30s
|
|
|
|
|
lettuce:
|
|
|
|
|
pool:
|
|
|
|
|
# 连接池中的最小空闲连接
|
|
|
|
|
min-idle: 0
|
|
|
|
|
# 连接池中的最大空闲连接
|
|
|
|
|
max-idle: 100
|
|
|
|
|
# 连接池的最大数据库连接数
|
|
|
|
|
max-active: 300
|
|
|
|
|
# #连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
|
|
|
max-wait: -1ms
|
|
|
|
|
# 关闭超时时间
|
|
|
|
|
shutdown-timeout: 1000
|
|
|
|
|
datasource:
|
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
|
druid:
|
|
|
|
|
# 主库数据源
|
|
|
|
|
master:
|
|
|
|
|
driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|
|
|
url: jdbc:sqlserver://119.45.202.115:1433;SelectMethod=cursor;DatabaseName=xmxs_os
|
|
|
|
|
# 海威Windows服务器
|
|
|
|
|
url: jdbc:sqlserver://119.45.202.115:1433;SelectMethod=cursor;DatabaseName=hkzd-mes
|
|
|
|
|
username: sa
|
|
|
|
|
password: haiwei@123
|
|
|
|
|
# 从库数据源
|
|
|
|
|
# 生产服务器
|
|
|
|
|
# url: jdbc:sqlserver://localhost:1433;SelectMethod=cursor;DatabaseName=xmxs_os
|
|
|
|
|
# username: sa
|
|
|
|
|
# password: xmxs@2024
|
|
|
|
|
# 外部生产服务器
|
|
|
|
|
# url: jdbc:sqlserver://10.tcp.cpolar.top:10710;SelectMethod=cursor;DatabaseName=xmxs_os
|
|
|
|
|
# username: sa
|
|
|
|
|
# password: xmxs@2024
|
|
|
|
|
# 从库数据源
|
|
|
|
|
slave:
|
|
|
|
|
driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|
|
|
# 从数据源开关/默认关闭
|
|
|
|
|
|