Closed magnus-larsson closed 3 years ago
Found the answer in https://spring.io/blog/2020/10/07/spring-cloud-2020-0-0-m4-aka-ilford-is-available, simply adding a dependency to org.springframework.cloud:spring-cloud-starter-bootstrap
solved the issue.
Describe the bug Starting with Spring Cloud 2020.0.0-M4 it seems like the spring-cloud-gateway ignores the dependency to spring-cloud-starter-config, resulting in that the gateway doesn't try to lookup its configuration from the config server at startup. This works fine using Spring Cloud 2020.0.0-M3.
Sample Create, build and run a gateway based on Spring Cloud 2020.0.0-M4 using Spring Initializr CLI:
The log output from the startup will look like (lacking attempts to fetch its config from the config server):
Changing Spring Cloud version to 2020.0.0-M3 in
build.gradle
+ rebuild and run will result in the expected log output during the startup: