From d83d178654a3b4607cfc2dfc26819afb34d31dea Mon Sep 17 00:00:00 2001 From: weicw <594098497@qq.com> Date: Fri, 30 Oct 2026 17:15:46 +0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=E5=BC=80=E5=8F=91=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=BB=98=E8=AE=A4=E4=BD=BF=E7=94=A8=20gxtyzx-test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-gxtyzx-test.yml | 6 +++--- src/main/resources/application.yml | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/resources/application-gxtyzx-test.yml b/src/main/resources/application-gxtyzx-test.yml index e1ce706..afa6577 100644 --- a/src/main/resources/application-gxtyzx-test.yml +++ b/src/main/resources/application-gxtyzx-test.yml @@ -1,9 +1,9 @@ # 测试环境配置(8.134.55.105:13306 / 本地 Redis database 5) # -# 启动方式: -# ./mvnw spring-boot:run -Dspring-boot.run.profiles=gxtyzx-test +# application.yml 已默认激活 gxtyzx-test,直接启动即可: +# ./mvnw spring-boot:run # 或: -# java -jar target/com-gxwebsoft-server-1.5.2.jar --spring.profiles.active=gxtyzx-test +# java -jar target/com-gxwebsoft-server-1.5.2.jar spring: datasource: diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 2aca9fe..585021b 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -7,8 +7,10 @@ socketio: # 多环境配置 spring: profiles: + # 开发环境固定使用测试库(8.134.55.105 / Redis db5);生产/其他环境通过 SPRING_PROFILES_ACTIVE 覆盖 + active: ${SPRING_PROFILES_ACTIVE:gxtyzx-test} # active: dev - active: dev-local +# active: dev-local # active: prod application: