如何解决无法评估org.apache.camel.spring.boot.security.CamelSSLAutoConfiguration

时间:2019-07-18 14:05:35

标签: spring-boot apache-camel

我已将骆驼版本更新为2.21.0,但运行该应用程序时出现下一个问题。

2019-07-18 08:54:43.399 [ERROR] [SpringApplication:825]-应用程序启动失败 org.springframework.beans.factory.BeanDefinitionStoreException:无法处理配置类[com.carvajal.invoice.engines.mail.processor.BootstrapService]的导入候选对象;嵌套异常为java.lang.IllegalStateException:由于找不到org / springframework / boot / context / properties / bind / Binder,因此无法评估org.apache.camel.spring.boot.security.CamelSSLAutoConfiguration上的条件。确保您自己的配置不依赖该类。如果您正在@ComponentScanning springframework软件包中(例如,如果您错误地将@ComponentScan放入默认软件包中),也会发生这种情况     在org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:519)     在org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:455)     在org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:186)     在org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:321)     在org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:243)处     在org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273)     在org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:98)     在org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:678)处     在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:520)     在org.springframework.boot.SpringApplication.refresh(SpringApplication.java:764)     在org.springframework.boot.SpringApplication.doRun(SpringApplication.java:357)     在org.springframework.boot.SpringApplication.run(SpringApplication.java:305)     在org.springframework.boot.SpringApplication.run(SpringApplication.java:1124)     在org.springframework.boot.SpringApplication.run(SpringApplication.java:1113)     在com.carvajal.invoice.engines.mail.processor.BootstrapService.main(BootstrapService.java:45)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处     在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)     在org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)     在org.springframework.boot.loader.Launcher.launch(Launcher.java:87)     在org.springframework.boot.loader.Launcher.launch(Launcher.java:50)     在org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:521) 引起原因:java.lang.IllegalStateException:由于找不到org / springframework / boot / context / properties / bind / Binder,因此无法评估org.apache.camel.spring.boot.security.CamelSSLAutoConfiguration上的条件。确保您自己的配置不依赖该类。如果您正在@ComponentScanning springframework软件包中(例如,如果您错误地将@ComponentScan放入默认软件包中),也会发生这种情况     在org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:55)     在org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:102)     在org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:204)     在org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:510)     ...另外22个 造成原因:java.lang.NoClassDefFoundError:org / springframework / boot / context / properties / bind / Binder     在org.apache.camel.spring.boot.security.CamelSSLAutoConfiguration $ Condition.getMatchOutcome(CamelSSLAutoConfiguration.java:53)     在org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47)     ...另外25个

0 个答案:

没有答案