How do I activate a Spring Boot profile when running from IntelliJ?

前端 未结 13 1536
醉梦人生
醉梦人生 2021-01-30 00:09

I have 5 environments:

 - local (my development machine)
 - dev
 - qc
 - uat
 - live
 - staging

I want different application properties to be u

相关标签:
13条回答
  • 2021-01-30 00:37

    For Spring Boot 2.1.0 and later you can use

    mvn spring-boot:run -Dspring-boot.run.profiles=foo,bar

    0 讨论(0)
提交回复
热议问题