赞
踩
报错
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>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。