解决springboot2.x项目添加@EnableDiscoveryClient注解找不到的问题


环境:

IDEA

maven3.0

springboot2.2.0

 

特别注意springboot的版本,1.0和2.0有很大区别

解决办法:

pom添加:

<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
            <version>2.1.1.RELEASE</version>
        </dependency>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM