清除Nacos:删bootstrap.yml与pom依赖,加actuator;配置改平台档案模式

This commit is contained in:
chenxing
2026-09-04 14:40:05 +08:00
parent 2317574942
commit 626686b851
11 changed files with 56 additions and 213 deletions
+6 -5
View File
@@ -1,10 +1,11 @@
#!/bin/sh
# BschClass 启动入口:配置统一由 Nacos 配置中心在 bootstrap 阶段下发(见 bootstrap.yml)
# 不再需要手动 curl 拉取;若 nacos 不可达,bootstrap 中 fail-fast=false 会自动回退到
# 镜像内烤好的 application-prod.yml 兜底默认。
# BschClass 启动入口。
# 配置来源(低 -> 高):镜像内兜底 /app/config/application-prod.yml
# < projman 平台挂载的同名文件(覆盖镜像内兜底)
# < 平台注入的环境变量(SERVER_PORT / 数据库连接 / 中间件 / SSO 等)
set -e
echo "[run-app] starting BschClass (profile=prod, nacos=${NACOS_ADDR:-nacos.yunhaixingtong.com:8848}) ..."
echo "[run-app] starting BschClass (profile=${SPRING_PROFILES_ACTIVE:-prod}) ..."
exec java ${JAVA_OPTS:--Xms512m -Xmx1024m} -Dfile.encoding=UTF-8 -jar /app/BschClass-0.1.jar \
--spring.profiles.active=prod
--spring.profiles.active=${SPRING_PROFILES_ACTIVE:-prod}