From 1b1d55a05551bf355fbff0d451719c3be4edf8ec Mon Sep 17 00:00:00 2001 From: hanxuanyu <2252193204@qq.com> Date: Thu, 5 Mar 2026 11:32:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9springboot=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/springboot/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/springboot/deploy.sh b/deploy/springboot/deploy.sh index e9bdc9c..8d66d8e 100644 --- a/deploy/springboot/deploy.sh +++ b/deploy/springboot/deploy.sh @@ -319,7 +319,7 @@ start_app() { # 启动命令说明: # 1. 使用 nohup 后台启动,避免会话退出导致进程结束 - # 2. --spring.config.location 指向外置配置目录 + # 2. --spring.config.additional-location 追加外置配置目录 # 3. 标准输出与错误输出统一重定向到 console.out nohup "${JDK_HOME}/bin/java" \ ${JVM_OPTS} \ @@ -327,7 +327,7 @@ start_app() { ${debug_opts} \ -jar "${jar_path}" \ --spring.profiles.active="${SPRING_PROFILE}" \ - --spring.config.location="${CONFIG_DIR}/" \ + --spring.config.additional-location="${CONFIG_DIR}/" \ ${SPRING_EXTRA_ARGS} \ >> "${CONSOLE_LOG_FILE}" 2>&1 &