spring boot中spring.profiles.active的用法

来源:互联网 发布:程序员一天工作几小时 编辑:程序博客网 时间:2024/05/18 17:56
1、在xml配置中加上 
<context:property-placeholder location="classpath:${spring.profiles.active}/app.properties"/>
2、程序启动的时候加上jvm参数 -Dspring.profiles.active="dev"
阅读全文
0 0
原创粉丝点击