Spring Boot get spring.profiles.active value in a static block

前端 未结 0 1885
自闭症患者
自闭症患者 2020-12-03 14:17

Is it possible to get the value of the spring active profile in some class\'s static block?

I have tried @value("$(spring.profiles.active)") an

相关标签:
回答
  • 消灭零回复
提交回复
热议问题