Correct the classpath of your application so that it contains a single

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.boot.actuate.health.CompositeHealthIndicator

在查阅各种资料还是无法解决的情况下 我开始逐一排查 最后定位在springboot与springcloud版本对应的关系上

Release Train Boot Version
Hoxton 2.2.x
Greenwich 2.1.x
Finchley 2.0.x
Edgware 1.5.x
Dalston 1.5.x

这是springcloud官方给出的对应关系 然而博主之前使用的是Hoxton与2.2.1
这与官方所给出的方案是相符合的 索性降版本 改为Greenwich与2.1.2 报错解决

你可能感兴趣的:(Correct the classpath of your application so that it contains a single)