Description:
Lets say there is a profile baz.
classpath:application-baz (local to jar) is overriding application-baz from spring cloud config repository, which is incorrect.
i.e., values from jar local property source gets precedence over the spring cloud config repo's property source.
Test case illustrating the issue:
spring-cloud/spring-cloud-config#1839 --> This PR has the test case in it .
See open issue on spring cloud board:
spring-cloud/spring-cloud-config#1838
Spring cloud has suggested the bug to be logged under spring boot.
The workaround we have been applying is
- remove
spring.config.import from application's src/main/resources/application.yml
- set
spring.config.import as JAVA_OPTS when starting the service.
Description:
Lets say there is a profile
baz.classpath:application-baz(local to jar) is overridingapplication-bazfrom spring cloud config repository, which is incorrect.i.e., values from jar local property source gets precedence over the spring cloud config repo's property source.
Test case illustrating the issue:
spring-cloud/spring-cloud-config#1839 --> This PR has the test case in it .
See open issue on spring cloud board:
spring-cloud/spring-cloud-config#1838
Spring cloud has suggested the bug to be logged under spring boot.
The workaround we have been applying is
spring.config.importfrom application'ssrc/main/resources/application.ymlspring.config.importasJAVA_OPTSwhen starting the service.