Failed to process import candidates for configuration class [cn.itcast.eureka.EurekaApplication]

报错

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

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐