Camel Context - 应用程序上下文中某些bean的依赖关系形成一个循环:

问题描述 投票:0回答:1

我正在使用 Spring Boot 和 build.gradle 文件,有谁知道如何修复下面的这个错误?

抱歉,我对 SpringBoot 和 Java 还很陌生。


应用程序无法启动


描述:

应用程序上下文中的一些bean的依赖关系形成一个循环:

模板 ?????? |政策骆驼语境 ? ? | org.apache.camel.impl.health.DefaultHealthCheckRegistry ??????

行动:

不鼓励依赖循环引用,并且默认情况下禁止它们。更新您的应用程序以消除 Bean 之间的依赖循环。作为最后的手段,可以通过将 spring.main.allow-circular-references 设置为 true 来自动打破循环。

这是我来自 build.gradle 的骆驼上下文版本

implementation group: 'org.apache.camel', name: 'camel-core', version: '3.2.0'
implementation group: 'org.apache.camel', name: 'camel-spring', version: '3.20.3'
implementation group: 'org.apache.camel', name: 'camel-stream', version: '3.20.3'
implementation group: 'org.apache.camel', name: 'camel-jms', version: '3.20.3'
implementation group: 'org.apache.camel', name: 'camel-spring-xml', version: '3.20.3'
java spring-boot circular-dependency spring-camel
1个回答
0
投票

你解决了吗??从 3.2 迁移到 4.4 时遇到相同的错误

© www.soinside.com 2019 - 2024. All rights reserved.