项目整合Spring Cloud Alibaba的问题
来源:4-3 为项目整合Spring Cloud Alibaba

菜先森好学
2021-04-01
为啥一定要加version,课程里没有加这个version
写回答
1回答
-
大目
2021-04-06
parent项目是这个吗?
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.5.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent>
或者,pom.xml有这一段吗?
<dependencyManagement> <dependencies> <!--整合spring cloud--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>Greenwich.SR1</version> <type>pom</type> <scope>import</scope> </dependency> </dependencyManagement>
必须二选一,才能不写版本哦,详见《整合spring cloud》一节。
00
相似问题