采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
为啥一定要加version,课程里没有加这个version
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》一节。
登录后可查看更多问答,登录/注册
面向未来微服务:熟练掌握Spring Cloud Alibaba
1.1k 4
2.5k 1
3.3k 2
2.2k 3
4.6k 13
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号