在用springCloud Eureka做服务端的时候发现这个一直引不了包
结果是用了高版本的Eureka却引入了错误 版本系列 的 cloud依赖包
改为如下图Finchley.RELEASE 版本的依赖
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.1.RELEASE</version>
</parent>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
</dependencies>
详情请见spring官网:http://projects.spring.io/spring-cloud/
---------------------
作者:private风
来源:CSDN
原文:https://blog.csdn.net/private66/article/details/80930395
版权声明:本文为博主原创文章,转载请附上博文链接!