Eureka 启动异常BeanDefinitionStoreException: Failed to process import candidates for configuration class
Eureka 启动异常BeanDefinitionStoreException: Failed to process import candidates for configuration class。
·
Eureka 启动异常BeanDefinitionStoreException: Failed to process import candidates for configuration class
异常内容
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.watson.EurekaServerApplication]; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
替换pom中的依赖
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-netflix-eureka-server</artifactId>
</dependency>
</dependencies>
替换为
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
</dependencies>
更多推荐
已为社区贡献1条内容
所有评论(0)