首页 > 技术文章 > springboot项目在IDEA根据不同的开发人员读取不同的配置文件

matd 2019-12-11 18:32 原文

  1. IDEA启动项目
    打开项目的配置文件,修改Program argument为--spring.profiles.active=developerName
    启动项目,即可

 

 

  1. 命令行方式启动项目
java -jar xxx.jar --spring.profiles.active=xxxx

  

推荐阅读