maven project 中 spring-cloud-starter-netflix-eureka-server爆红
加上版本号即可解决<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-netflix-eureka-server</artifactId><version>2.2.2.RELEASE</versi
·
父工程里设置springcloud依赖的时候,没有加上dependencyManagement
正确应为:
<!--添加springcloud依赖-->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
更多推荐
已为社区贡献1条内容
所有评论(0)