原文:1.springcloud-eureka啟動報錯,提示The following method did not exist: org.springframework.boot.actuate.health.CompositeHealthIndicato

詳細錯誤: 這個問題是springboot 和 springcloud 版本號不一致的問題 比如我的 我的是錯誤的 就是: SpringBoot . . .RELEASE SpringCloud Greenwich.SR 解決方法 解決方法有如下兩種,我都已經測試過,這兩種方法都可以解決問題 降級 SpringBoot把 SpringBoot 從 . . .RELEASE 降級成 . . .REL ...

2021-04-28 16:36 0 509 推薦指數:

查看詳情

java.lang.NoClassDefFoundError: org/springframework/boot/actuate/

項目引入了actuate健康檢查,在生產上報錯,去掉就好了! 我用這個呢,就是為了方便開發. 引入這個包后,項目啟動在controller的方法處,會出現綠色三角按鈕,點擊就可以直接調試接口,非常方便. 現在引入線上有問題,那就去掉吧! 應該可以在依賴里面加上<scope> ...

Mon Jun 22 18:32:00 CST 2020 0 2793
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM