是否有可能将spring.profiles.active
的application.properties
设置为包含其他变量的值?显然,我无法得到这个工作。将spring.profiles.active设置为application.properties中变量的值
这里是我想要的东西:
one=${APP_ONE:foo}
two=${APP_TWO:bar}
spring.profiles.active=${one},${two}
这里,也是环境变量APP_ONE
和APP_TWO
应加以解释和spring.profiles.active
结束。
然后,我希望能够在标记中参考applicationContext.xml
。
对不起,如果我在这里不够清楚,但我不知道如何更精确。