我将现有的Spring Boot应用程序从springboot 1.5升级到2.0.现在,当我尝试部署应用程序时,我收到以下错误消息.请帮忙.
注意:我没有@ComponentScan,而是在我的应用程序中的root包中使用@SpringBootApplication.另外,我使用的是最新版本的apache camel springboot依赖项.
此外,如果我删除下面的依赖项,应用程序部署良好,但当然,没有Apache Camel路由器初始化!
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-boot-starter</artifactId>
<version>2.20.2</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
我是如何更新的:更改了pom.xml中的springboot版本使用的工具:STS(Spring Tool Suite)
14-03-2018 11:51:27.972-main-ERROR-SpringApplication - Application run failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.test.MyTestApp]; nested exception is java.lang.IllegalStateException: Could not evaluate condition on org.apache.camel.spring.boot.health.HealthCheckRoutesAutoConfiguration due to org/springframework/boot/bind/RelaxedPropertyResolver not found. Make sure your own configuration does not rely on that class. This can also happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by …Run Code Online (Sandbox Code Playgroud)