Rony Nguyen
Rony Nguyen

Reputation: 1144

Cannot fetch cloud configurations when upgrading Spring Boot from 2.1.x to 2.3.3

My project (microservices) are using Spring Boot 2.1.x and Spring Cloud Greenwich.SR5. I want to upgrade to Spring Boot 2.3.x (2.3.3 RELEASE) and Spring Cloud (Hoxton.SR8) but I face the issue that service cannot fetch information from the cloud config server(-Dspring.cloud.config.uri=http://config.abc).

I found that https://github.com/spring-cloud/spring-cloud-config/blob/2.2.x/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocator.java#L261 is sending V2_JSON not application/json.

Anyone can give me some solution or workaround?

Upvotes: 0

Views: 442

Answers (1)

Rony Nguyen
Rony Nguyen

Reputation: 1144

I've raised an issue here, hopefully, It will helpful
https://github.com/spring-cloud/spring-cloud-config/issues/1715

Upvotes: 1

Related Questions