Closed arjpaiva closed 1 year ago
All spring.config.import
statements are evaluated, never overridden.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
Describe the bug I'm trying to configure spring cloud consul for a specific profile but when I try to run the application I get the following error:
If I update spring.config.import to
spring.config.import=optional:consul:
inapplication-local.properties
, consul configuration is ignored and the configuration from the properties file is used instead of consul.application.properties
:spring.cloud.consul.enabled=false
application-local.properties
:It seems that Spring is not overriding the default configuration with the one specified in
application-local.properties
. I also tried configuring consul inbootstrap.properties
andbootstrap-local.properties
but I got the following error:I'm using
org.springframework.cloud:spring-cloud-starter-consul-config:3.0.3
and spring boot 2.4.7Thank you in advance.