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:

org.springframework.boot.actuate.health.CompositeHealthIndicator.<init>(Lorg/springframework/boot/actuate/health/HealthAggregator;)V

The method's class, org.springframework.boot.actuate.health.CompositeHealthIndicator, is available from the following locations:

jar:file:/C:/Users/Administrator/.m2/repository/org/springframework/boot/spring-boot-actuator/2.2.1.RELEASE/spring-boot-actuator-2.2.1.RELEASE.jar!/org/springframework/boot/actuate/health/CompositeHealthIndicator.class

It was loaded from the following location:

file:/C:/Users/Administrator/.m2/repository/org/springframework/boot/spring-boot-actuator/2.2.1.RELEASE/spring-boot-actuator-2.2.1.RELEASE.jar


Action:

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

 

原因:

  jar包重复

解决方法:

  pom中删掉 spring-boot-starter-actuator

相关文章:

  • 2022-12-23
  • 2021-12-01
  • 2021-04-02
  • 2021-10-14
  • 2021-05-01
  • 2022-12-23
  • 2021-11-26
  • 2022-01-22
猜你喜欢
  • 2021-07-13
  • 2022-02-16
  • 2021-08-05
  • 2022-12-23
  • 2021-09-28
  • 2021-07-04
  • 2022-12-23
相关资源
相似解决方案