Browse Source

update:修改环境配置

master
songxiaopeng 9 months ago
parent
commit
61012fd1d8
  1. 2
      lms/hd/nladmin-system/src/main/resources/config/application-dev.yml
  2. 4
      lms/hd/nladmin-system/src/main/resources/config/application-prod.yml

2
lms/hd/nladmin-system/src/main/resources/config/application-dev.yml

@ -22,7 +22,7 @@ spring:
username: ${DB_USER:root} username: ${DB_USER:root}
#password: ${DB_PWD:P@ssw0rd} #password: ${DB_PWD:P@ssw0rd}
# password: ${DB_PWD:Root.123456} # password: ${DB_PWD:Root.123456}
password: ${DB_PWD:zjw123} password: ${DB_PWD:123456}
# 初始连接数 # 初始连接数
initial-size: 5 initial-size: 5
# 最小连接数 # 最小连接数

4
lms/hd/nladmin-system/src/main/resources/config/application-prod.yml

@ -8,7 +8,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:192.168.46.225}:${DB_PORT:3306}/${DB_NAME:hl_one_mes}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false url: jdbc:log4jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:xugong_lms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true&useSSL=false
username: ${DB_USER:root} username: ${DB_USER:root}
password: ${DB_PWD:123456} password: ${DB_PWD:123456}
#password: ${DB_PWD:Root.123456} #password: ${DB_PWD:Root.123456}
@ -58,7 +58,7 @@ spring:
redis: redis:
#数据库索引 #数据库索引
database: ${REDIS_DB:6} database: ${REDIS_DB:6}
host: ${REDIS_HOST:192.168.46.225} host: ${REDIS_HOST:127.0.0.1}
#host: ${REDIS_HOST:localhost} #host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379} port: ${REDIS_PORT:6379}
password: ${REDIS_PWD:} password: ${REDIS_PWD:}

Loading…
Cancel
Save