springboot 分离环境部署
application.yml 配合 pom.xml
spring:
profiles:
active: @spring.profiles.active@
pom.xml 文件
<spring.profiles.active>test</spring.profiles.active>
分环境打包
mvn clean package -Pprod -Dmaven.test.skip=true
mvn clean package -Pdev -Dmaven.test.skip=true
如果有来生,一个人去远行,看不同的风景,感受生命的活力。。。


浙公网安备 33010602011771号