spring-cloud / spring-cloud-config

External configuration (server and client) for Spring Cloud
Apache License 2.0
1.95k stars 1.29k forks source link

Spring cloud config server on refresh -> the log display is incorrect, show like application_name_IS_UNDEFINED #2068

Closed FUCKU closed 2 years ago

FUCKU commented 2 years ago

The other microservices start normally, and the log gets the spring.application.name correctly, However, when the refresh endpoint is called, the log does not get the correct spring.application.name after the configuration is updated. the log shows that XXX IS UNDEFINED.

To be exact, anything like <springProperty scope="context" ....../> does not get the value correctly.

Is this a bug? Or is a New Feature I need ? Or what exactly am I going to do? I tried several schemes, including changing the logback-spring.xml file to something else and loading it in the application.yml file, but nothing worked. Versions:

2.5.10 2020.0.5 a Minimal, Reproducible Example : https://github.com/FUCKU/cloudSampleProjects
ryanjbaxter commented 2 years ago

Please simplify the sample so its the minimal thats needed to reproduce the problem. Also could you please upgrade to 2021.0.1

spring-cloud-issues commented 2 years ago

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.

spring-cloud-issues commented 2 years ago

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.