学习 spring-cloud-aibaba第一篇,goods项目整合 spring-cloud-aibaba

特别提醒:我只是个菜鸟,写的文章都是自己的学习经验,并不能保证都是正确的,只能作为参考

1.springboot的版本该如何选择

https://spring.io/projects/spring-boot#learn 这里我们可以查看spingboot有哪些版本。
在这里插入图片描述
可以看到,2.1.6 标注是current:当前的,GA:可以普遍使用的稳定版本,所以我们用2.1.6版本
在这里插入图片描述

2.springcloud版本该如何选择

先查看 springboot和springcloud 的版本对应关系
https://spring.io/projects/spring-cloud#overview
在这里插入图片描述
所以springboot 2.1.6 对应的应该是springcloud Greenwich大版本。然后我再看:
在这里插入图片描述
当前最新稳定的版本是Greenwich SR2,第2次bug修复版本。所以确定springcloud版本是
在这里插入图片描述

3.spring-cloud-alibaba版本该如何选择

https://github.com/alibaba/spring-cloud-alibaba/wiki/版本说明
在这里插入图片描述
从这里的说明可以看出 springcloud Greenwich就用对应的 0.9.0.RELESAE版本,把这一段拷贝到pom.xml里面
在这里插入图片描述
好了,springboot,springcloud,springcloudalibaba都引入完毕!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章