当前位置:   article > 正文

eureka学习问题-springcloud + eureka启动报错_nosuchmethod org.springframework.cloud.bootstrap.b

nosuchmethod org.springframework.cloud.bootstrap.bootrapapplicationlistenser

启动报错,找不到方法

  1. java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Class;)V
  2. at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:170)
  3. at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:104)
  4. at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:70)
  5. at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
  6. at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
  7. at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
  8. at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
  9. at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)
  10. at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
  11. at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:325)
  12. at org.springframework.boot.SpringApplication.run(SpringApplication.java:296)
  13. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
  14. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
  15. at com.example.demo.MicroserviceDiscoveryEurekaApplication.main(MicroserviceDiscoveryEurekaApplication.java:12)

解决方案:https://www.cnblogs.com/wang-yaz/p/9066862.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/937146
推荐阅读
相关标签
  

闽ICP备14008679号