【发布时间】:2019-12-30 08:39:17
【问题描述】:
我正在使用这个命令行来启动我的 spring-boot 服务:
mvn clean compile -DskipTests \
spring-boot:run \
-Dspring-boot.run.arguments=--spring.profiles.active="bo,pre"
我正在使用两个配置文件:--spring.profiles.active="bo,pre"。从上面的命令可以看出,我正在激活bo 和pre 配置文件。
但是,当我的服务启动时,我看到只有 bo 个人资料处于活动状态:
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.4.RELEASE)
2019-12-30 09:33:08.013 INFO... : Starting ApiApplication on psgd with PID 30578 (/home/jeusdi/projects/repositori-digital/rep-digital-api/target/classes started by jeusdi in /home/jeusdi/projects/repositori-digital/rep-digital-api)
2019-12-30 09:33:08.022 DEBUG ... : Running with Spring Boot v2.0.4.RELEASE, Spring v5.0.8.RELEASE
2019-12-30 09:33:08.027 INFO ... : The following profiles are active: bo
有什么想法吗?
【问题讨论】:
标签: spring spring-boot spring-profiles