spring.config.import order is not honored with third-party plugins #881
Labels
component: parameter-store
Parameter Store integration related issue
status: waiting-for-feedback
Waiting for feedback from issuer
Milestone
Type: Bug
Component: Secrets Manager
Describe the bug
Continuing from spring-projects/spring-boot#37273
While trying to use a third party Spring Cloud for AWS to load configuration from Secrets Manager and also a local Properties resource I'm observing this:
With application.properties having:
spring.config.import=configtree:config/,classpath:config.properties
I get this order:
Trying:
spring.config.import=classpath:config.properties,configtree:config/
Gives this order:
So far so good and consistent with documentation which says "Several locations can be specified under a single spring.config.import key. Locations will be processed in the order that they are defined, with later imports taking precedence."
However setting:
spring.config.import=aws-secretsmanager:sample/config,classpath:config.properties
Gives me this:
which makes the Plugin take precedence even if declared before the additional file.
Running with Spring Boot 3.1.3 and spring-cloud-starter-aws-secrets-manager-config v2.4.4.
The text was updated successfully, but these errors were encountered: