-
Notifications
You must be signed in to change notification settings - Fork 40.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A configserver import in a profile-specific file doesn't import anything #26950
Comments
The change in behaviour is due to #26753. The |
@wilkinsona that's correct. It fixes my case. I think it should be a bit better described maybe in docs, but definitely here: |
What should I do if I use different URLs of configserver for different environments but I don't use a default one? |
Hi, I have the same issue, I described it in #26858 because I thought it is related to my case: #26858 (comment) I think this is a really breaking change that shouldn't be part of the minor release. |
#26960 is going to restore the previous behaviour. |
Describe the bug
Integration with importing aka
spring.config.import
seems broken since Spring Boot 2.5.1 with newest spring-cloud-config 3.0.4.Sample
Actually I don't know on which side the bug is. Here:
spring-config.zip
you can find example based on tutorial. You should unpack zip at
/tmp/spring-cloud
and then run server + client. Client should be run withdev
profile. Once you call endpoint http://127.0.0.1:8080/message you should seeHello Dev!
. With Spring Boot 2.5.0 it works as expected. However after changingbuild.gradle
of client to:Configurations are no longer fetched from the server. So you can see only the default value
Hello default
on http://127.0.0.1:8080/messageYou can also verify if property
message
was fetched with help of:http://127.0.0.1:8080/actuator/env/message
This bug was also reported at spring-cloud-config:
spring-cloud/spring-cloud-config#1913
The text was updated successfully, but these errors were encountered: