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

前端 未结 13 1658
醉梦人生
醉梦人生 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:19

    If you actually make use of spring boot run configurations (currently only supported in the Ultimate Edition) it's easy to pre-configure the profiles in "Active Profiles" setting.

提交回复
热议问题