aused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.apache.camel.CamelContext] is defined: expected single matching bean but found 2: SampleCamel,camelContext
当报这个错误时 需要升级 jar 包到2.16.0 及以上
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-boot</artifactId>
<version>2.16.0</version>
</dependency>
https://issues.apache.org/jira/browse/CAMEL-8801
本文解决了一个关于Spring Boot中使用Apache Camel时出现的NoUniqueBeanDefinitionException问题,建议将camel-spring-boot的依赖升级至2.16.0版本以上。
1290

被折叠的 条评论
为什么被折叠?



