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>
Logo

一起探索未来云端世界的核心,云原生技术专区带您领略创新、高效和可扩展的云计算解决方案,引领您在数字化时代的成功之路。

更多推荐