How to set Spring profile from system variable?

前端 未结 7 1544
无人共我
无人共我 2020-12-07 18:12

I have a Spring project which uses another project. Each project has its own spring profile initialize from java code using applicationContext.xml and *.p

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 18:43

    SPRING_PROFILES_ACTIVE is the environment variable to override/pick Spring profile

提交回复
热议问题