fix database second config

main
xingzi 2 years ago
parent cc2eeab5f0
commit b6cb0ec235

@ -4,7 +4,7 @@ spring:
druid: druid:
db-type: com.alibaba.druid.pool.DruidDataSource db-type: com.alibaba.druid.pool.DruidDataSource
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
url: jdbc:log4jdbc:mysql://${DB_HOST:168.138.192.184}:${DB_PORT:3306}/${DB_NAME:eladmin}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false url: jdbc:log4jdbc:mysql://${DB_HOST:168.138.192.184}:${DB_PORT:3306}/${DB_NAME:eladmin}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username: ${DB_USER:xingzi} username: ${DB_USER:xingzi}
password: ${DB_PWD:Wp321123} password: ${DB_PWD:Wp321123}
# 初始连接数 # 初始连接数
@ -50,6 +50,17 @@ spring:
wall: wall:
config: config:
multi-statement-allow: true multi-statement-allow: true
secondary:
db-type: com.alibaba.druid.pool.DruidDataSource
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
url: jdbc:log4jdbc:mysql://${DB_HOST:168.138.192.184}:${DB_PORT:3306}/${DB_NAME:eladmin}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
username: ${DB_USER:flow}
password: ${DB_PWD:f321123}
third:
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
url: jdbc:log4jdbc:mysql://${DB_HOST:140.249.182.90}:${DB_PORT:3306}/${DB_NAME:eladmin}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
username: ${DB_USER:liuniu}
password: ${DB_PWD:Lnkj2022}
# 登录相关配置 # 登录相关配置
login: login:

@ -8,7 +8,7 @@ spring:
freemarker: freemarker:
check-template-location: false check-template-location: false
profiles: profiles:
active: dev active: prod
data: data:
redis: redis:
repositories: repositories:

Loading…
Cancel
Save