Spring 启动 chaosmonkey

Spring Boot chaosmonkey

我正在尝试将 chaos monkey 与 spring 引导一起使用,但出现以下错误。有没有人将它与 spring 云和 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"

chaosmonkey 中有一个 bug 与最新的 Chaos Monkey 版本 2.1 中的 spring 云相结合

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

对于gradle:

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>

我发现,spring 启动器 Web 依赖项不知何故丢失,一切正常,除了 chaos money。