0

我正在尝试将 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"
4

2 回答 2

0

在最新的 Chaos Monkey 2.1 版本中,ChaosMonkey 与 Spring Cloud 结合存在一个错误

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

对于毕业:

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

对于行家:

<dependency>
  <groupId>de.codecentric</groupId>
  <artifactId>chaos-monkey-spring-boot</artifactId>
  <version>2.1.1</version>
</dependency>
于 2019-10-02T09:47:13.053 回答
0

我发现,spring starter web 依赖项不知何故丢失了,除了混乱的钱外,一切都运行良好。

于 2019-10-02T14:11:07.527 回答