前言

springboot版本2.2.2 启动eureka注册中心

错误信息


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;)VThe method's class, org.springframework.boot.actuate.health.CompositeHealthIndicator, is available from the following locations:jar:file:/D:/Program%20Files/My_repository/org/springframework/boot/spring-boot-actuator/2.2.2.RELEASE/spring-boot-actuator-2.2.2.RELEASE.jar!/org/springframework/boot/actuate/health/CompositeHealthIndicator.classIt was loaded from the following location:file:/D:/Program%20Files/My_repository/org/springframework/boot/spring-boot-actuator/2.2.2.RELEASE/spring-boot-actuator-2.2.2.RELEASE.jarAction:Correct the classpath of your application so that it contains a single, compatible version of org.springframework.boot.actuate.health.CompositeHealthIndicatorDisconnected from the target VM, address: '127.0.0.1:61951', transport: 'socket'Process finished with exit code 0

解决办法

参考:http://www.cocoachina.com/articles/30895

自己的解决方法:
我使用的ide是idea。把该工程下的iml文件删掉,然后其他的在项目里面重新设置。重新clear install。启动成功。

compatible version of org.springframework.boot.actuate.health.CompositeHealthIndicator相关推荐

  1. 解决 Spring Cloud 整合 zipkin 报错:org.springframework.boot.actuate.health.CompositeHealthIndicator......

    文章目录 一.问题描述 二.解决方法 一.问题描述 我的 Spring Boot 版本是 2.3.4,Spring Cloud 版本是 Hoxton.SR1. 要整合 zipkin,先在服务端导入了以 ...

  2. springcloud-eureka启动报错,提示The following method did not exist: org.springframework.boot.actuate.health

    报错信息汇总 文章目录 报错信息汇总 1.springcloud-eureka启动报错,提示The following method did not exist: org.springframewor ...

  3. SpringCloud_Eureka:java.lang.NoClassDefFoundError: org/springframework/boot/actuate/health/HealthAgg

    环境:intellij idea 2018.1.8 + jdk1.8 + spring boot 2.2.0.RELEASE 参考:https://www.cnblogs.com/grasp/p/92 ...

  4. 关闭springboot健康检查 org.springframework.boot.actuate.health.AbstractHealthIndicator 89 health - Elastic

    错误日志:org.springframework.boot.actuate.health.AbstractHealthIndicator 89 health - Elasticsearch healt ...

  5. Caused by: java.lang.ClassNotFoundException: org.springframework.boot.actuate.health.OrderedHealthAg

    依赖添加 <dependency><groupId>org.springframework.boot</groupId><artifactId>spri ...

  6. jrebel java.lang.ClassCastException: org.springframework.boot.actuate.endpoint.annotation

    在看开源项目 xxl-job 时,使用jrebel启动报错: Caused by: java.lang.ClassCastException: org.springframework.boot.act ...

  7. org/springframework/boot/actuate/metrics/cache/CacheMeterBinderProvider not found. Make sure your ow

    报错信息如下 java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.act ...

  8. Error processing condition on org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpoi

    错误信息: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candi ...

  9. org.springframework.boot.actuate.endpoint.EndpointId cannot be cast to java.lang.String 异常处理

    转自:https://blog.csdn.net/qq_38906421/article/details/84028240 java.lang.ClassCastException:    org.s ...

最新文章

  1. 图论 ---- CF700 C. Break Up(Tarjan找桥+枚举+思维)
  2. 如何使Sybase ASE中对象名不区分大小写?
  3. Android开发--Wifi的操作
  4. linux下aio异步读写详解与实例
  5. hdu 4983(欧拉函数)
  6. [C++程序设计]指针总结
  7. 换工作了,开始用金蝶的BOS了,好多东西都要学啊!
  8. Lyapunov and Stability Theory
  9. 1050 螺旋矩阵 (25 分
  10. 【jQuery笔记Part2】02-jQuery展开收起动画帷幔效果案例下拉菜单案例显示隐藏更多案例折叠菜单案例
  11. 如何理解FPGA的配置状态字寄存器Status Register
  12. 数据库建表操作SQL代码大全
  13. iOS 开发者常用的75 个工具
  14. 前端工程师的第一个Flutter应用
  15. Pandas学习 - 索引
  16. 花花公子推荐伤感qq日志:乖不哭,我拜你
  17. Laravel 生成Controller
  18. SVAC1.0帧内预测技术分析
  19. 图灵机器人php调用案例,使用httpclient实现图灵机器人web api调用实例
  20. 单页面SPA(如react,vue)网站的服务器渲染SSR之SEO大杀器rendertron(超详细配置+避坑)

热门文章

  1. 【芝麻信用对接】欺诈信息验证
  2. python 安卓王者荣耀刷金币
  3. 关于xxl-job终止任务但程序没有停止的问题
  4. 【uniapp】icon图标的使用
  5. C语言鼠标病毒,鼠标也中毒Windows系统中鼠标乱动是否中了病毒
  6. 扑克牌(ArrayList)
  7. 精灵随着鼠标的移动而移动
  8. 计算机函数if80到90分怎么弄,用EXCEL工作表怎样利用IF函数计算分数等级
  9. 计算机丢失系统文件如何找回,如何恢复电脑上丢失的文件
  10. 读懂matlab代码,一个Matlab的寻峰程序没有看懂,不知大家能否帮助?