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.cloudgroupId>
		<artifactId>spring-cloud-netflix-eureka-serverartifactId>
	dependency>
dependencies>

替换为

<dependencies>
	<dependency>
		<groupId>org.springframework.cloudgroupId>
		<artifactId>spring-cloud-starter-netflix-eureka-serverartifactId>
	dependency>
dependencies>

你可能感兴趣的:(Spring,Cloud,eureka,java,云原生)