springboot整合 eureka错误

错误信息

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.etoak.EurekaApp]; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
	
Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy

引发原因:依赖导入错误

解决办法:引入下边的maven依赖

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

最后打开 localhost:8761查看是否开启

你可能感兴趣的:(错误集锦,spring,Spring,boot)