解決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