【问题标题】:Spring Boot chaosmonkeySpring Boot 混沌猴
【发布时间】:2020-01-30 04:38:41
【问题描述】:

我正在尝试将 Chaos Monkey 与 Spring Boot 一起使用,但出现以下错误。有没有人将它与 spring cloud 和 Hystrix 一起使用来测试后备?无法启动服务器。

Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'chaosMonkeyRequestScope': Requested bean is currently in creation: Is there an unresolvable circular reference?

我正在使用以下版本:

springBootVersion = '2.1.2.RELEASE'
springCloudVersion= "Greenwich.SR3"
"de.codecentric:chaos-monkey-spring-boot:2.1.0"

【问题讨论】:

标签: spring spring-boot spring-cloud hystrix spring-boot-chaos-monkey


【解决方案1】:

chaosmonkey 中有一个bug 与最新 Chaos Monkey 版本 2.1 中的 Spring Cloud 结合

升级到Chaos Monkey 2.1.1 应该可以解决您的问题:)

对于毕业:

compile 'de.codecentric:chaos-monkey-spring-boot:2.1.1'

对于 Maven:

<dependency>
  <groupId>de.codecentric</groupId>
  <artifactId>chaos-monkey-spring-boot</artifactId>
  <version>2.1.1</version>
</dependency>

【讨论】:

    【解决方案2】:

    我发现,spring starter web 依赖项不知何故丢失了,一切正常,除了混乱的钱。

    【讨论】:

      猜你喜欢
      • 2019-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-12
      • 2022-01-03
      • 1970-01-01
      • 1970-01-01
      • 2015-02-16
      相关资源
      最近更新 更多