After 2.2.0 upgrade application failed to start when running under k8 profile.
APPLICATION FAILED TO START
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.cloud.client.discovery.health.DiscoveryCompositeHealthIndicator.<init>(DiscoveryCompositeHealthIndicator.java:42)
The following method did not exist:
'void org.springframework.boot.actuate.health.CompositeHealthIndicator.<init>(org.springframework.boot.actuate.health.HealthAggregator)'
The method's class, org.springframework.boot.actuate.health.CompositeHealthIndicator, is available from the following locations:
Comment From: snicoll
You are using Spring Boot 2.2 with a Spring Cloud version that is incompatible with it (see the analysis report and the location of the error).
Comment From: nandhusriram
Thanks I am using Greenwich.SR3 , will check out which version of cloud that spring boot 2.2 supports.
Comment From: snicoll
https://start.spring.io/info tells you that at any point in time.
Comment From: kdavid76
I have the same problem. I use Spring Boot 2.2.6 and Hoxton.SR4 Spring Cloud and still have the issue defined in the original comment.
Comment From: wilkinsona
@kdavid76 It sounds like you're still using a version of Spring Cloud Commons that is incompatible with Spring Boot 2.2. Specifically, you are using a version that does not contain this change. If you need some help figuring out why that is the case, please follow up on Stack Overflow or Gitter.
Comment From: kdavid76
Hi @wilkinsona !
Yes, I was using an old version. I had the properties set up correctly, but my local Maven repository was corrupted or something. When I deleted the whole local repository and the build had to download everything, my application started up.