diff --git a/nlsso-server/src/main/resources/config/application-dev.yml b/nlsso-server/src/main/resources/config/application-dev.yml index f1c70b8..7d52894 100644 --- a/nlsso-server/src/main/resources/config/application-dev.yml +++ b/nlsso-server/src/main/resources/config/application-dev.yml @@ -10,9 +10,9 @@ spring: datasource: mysql: driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy - url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:nl_sq_wms_test}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true + url: jdbc:log4jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:nl_sq_wms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true username: ${DB_USER:root} - password: ${DB_PWD:123456} + password: ${DB_PWD:NLABC&hl123} type: com.alibaba.druid.pool.DruidDataSource mysql_srm: # driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy diff --git a/nlsso-server/src/main/resources/config/application-prod.yml b/nlsso-server/src/main/resources/config/application-prod.yml index 4996698..7d52894 100644 --- a/nlsso-server/src/main/resources/config/application-prod.yml +++ b/nlsso-server/src/main/resources/config/application-prod.yml @@ -10,9 +10,9 @@ spring: datasource: mysql: driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy - url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:nl_sq_wms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true + url: jdbc:log4jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:nl_sq_wms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true username: ${DB_USER:root} - password: ${DB_PWD:123456} + password: ${DB_PWD:NLABC&hl123} type: com.alibaba.druid.pool.DruidDataSource mysql_srm: # driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy diff --git a/nlsso-server/src/main/resources/config/application.yml b/nlsso-server/src/main/resources/config/application.yml index b51e3d9..e9e4243 100644 --- a/nlsso-server/src/main/resources/config/application.yml +++ b/nlsso-server/src/main/resources/config/application.yml @@ -4,7 +4,7 @@ server: relaxed-path-chars: [ '|','{','}','[',']' ] #字符问题: https://blog.csdn.net/weixin_41996632/article/details/90715118 spring: profiles: - active: devLocal + active: dev datasource: druid: initial-size: 5 #初始化时建立物理连接的个数