小编Mar*_*mer的帖子

Spring Boot 2由于Hystrix而无法启动?

我开始研究将Spring Boot应用程序从1.5.x迁移到2。该应用程序依赖于hystrix,但与Spring Boot 2尚不兼容。当我在pom中具有以下内容时:

<dependency>
  <groupId>org.springframework.cloud</groupId>
  <artifactId>spring-cloud-starter-hystrix</artifactId>
  <version>1.4.4.RELEASE</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)

启动应用程序时出现以下错误:

java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V
    at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:125)
Run Code Online (Sandbox Code Playgroud)

有人经历过吗?有解决方案吗?

spring-boot hystrix

7
推荐指数
2
解决办法
1565
查看次数

标签 统计

hystrix ×1

spring-boot ×1