From 8020e53943925f5e6a869f97b658e1addb532e56 Mon Sep 17 00:00:00 2001 From: gongbaoxiong <751575283@qq.com> Date: Fri, 31 May 2024 17:35:12 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E7=BB=99=E5=89=8D=E7=AB=AF=E7=9A=84?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=88=86=E6=94=AF=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nlsso-server/src/main/resources/config/application-dev.yml | 4 ++-- nlsso-server/src/main/resources/config/application-prod.yml | 4 ++-- nlsso-server/src/main/resources/config/application.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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 #初始化时建立物理连接的个数