Including profiles with spring.profiles.include seems to override instead of include

前端 未结 1 981
眼角桃花
眼角桃花 2020-12-15 18:27

I\'m trying to partition configuration properties for several Spring Boot applications. I\'m using Spring Boot 1.1.6, and our configuration properties are expressed in YAML

相关标签:
1条回答
  • 2020-12-15 19:28

    Try the following for foo to include but override bar, seems to be working for my solution

    spring:
        profiles:
            include: bar
            active: foo,bar
    

    edit: please mind, that it's a "hack", not officially supported and it's for 2016 version

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