【解决】Failed to process import candidates for configuration class [cn.itcast.eureka.EurekaApplication]
Failed to process import candidates for configuration class [cn.itcast.eureka.EurekaApplication]报错org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates fo
·
Failed to process import candidates for configuration class [cn.itcast.eureka.EurekaApplication]
报错
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [cn.itcast.eureka.EurekaApplication]; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
解决方法:
依赖引错了
<!--Eureka Server-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<!-- 应为 -->
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
<!-- 而非
<artifactId>spring-cloud-netflix-eureka-server</artifactId>
-->
</dependency>
更多推荐
已为社区贡献1条内容
所有评论(0)