Details
-
Bug
-
Resolution: Done
-
Major
-
FIS 2.0
-
None
-
%
Description
Using camel-jasypt-starter to encrypt properties in Spring boot with camel spring xml it result with the following exception:
17:32:33.264 [main] WARN o.s.boot.SpringApplication - Error handling failed (Error creating bean with name 'camel': Invocation of init method failed; nested exception is java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@11758f2a has not been refreshed yet) 17:32:33.317 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - *************************** APPLICATION FAILED TO START *************************** Description: Parameter 1 of method properties in org.apache.camel.spring.boot.CamelAutoConfiguration required a single bean, but 2 were found: - jasypt: defined in class path resource [spring/camel-context.xml] - propertiesParser: defined by method 'propertiesParser' in class path resource [org/apache/camel/spring/boot/CamelAutoConfiguration.class] Action: Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed