当前位置:   article > 正文

【解决】Failed to process import candidates for configuration class [cn.itcast.eureka.EurekaApplication]

failed to process import candidates for configuration class [cn.itcast.eurek

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
  • 1

解决方法:
依赖引错了

		<!--Eureka Server-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <!-- 应为 -->
            <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
            <!-- 而非
            <artifactId>spring-cloud-netflix-eureka-server</artifactId>
            -->
        </dependency>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/262692
推荐阅读
相关标签
  

闽ICP备14008679号