1:启动jar 包命令
java -jar -Dspring.config.location=/config/bootstrap.yml,/config/bootstrap-uat.yml hcloud-server-1.0.0-SNAPSHOT.jar --spring.profiles.active=uat
命令说明 config.location 配置文件地址 ,多个文件用逗号,隔开。
spring.profiles.active 当前运行环境得名称
2: 使用spring config 配置,统一管理配置