以前都没怎么重视版本的选择 用之即可 以至于一个错误 找了2天
Springcloud 使用nacos 做为配置中心的时候 还读取不到配置中心的信息 使用@Value 注解失效
通过各种检查 maven 架包 已经nacos 的版本切换 就是没想到Springcloud 的版本 会对nacos 有影响 使用IDEA 默认使用当前最新版本的Springboot 和Springcloud 都是最新的 ,如果有小伙伴独自想做项目 一定要想好各种版本 与第三方服务所支持的版本 这些都是后期可以节约很多时间的
下面有更加详细的版本选择
{
"bom-ranges": {
"azure": {
"2.0.10": "Spring Boot >=2.0.0.RELEASE and <2.1.0.RELEASE",
"2.1.7": "Spring Boot >=2.1.0.RELEASE and <2.2.0.M1",
"2.2.0": "Spring Boot >=2.2.0.M1"
},
"codecentric-spring-boot-admin": {
"2.0.6": "Spring Boot >=2.0.0.M1 and <2.1.0.M1",
"2.1.6": "Spring Boot >=2.1.0.M1 and <2.2.0.M1",
"2.2.1": "Spring Boot >=2.2.0.M1"
},
"spring-cloud": {
"Finchley.BUILD-SNAPSHOT": "Spring Boot >=2.0.999.BUILD-SNAPSHOT and <2.1.0.M3",
"Finchley.M2": "Spring Boot >=2.0.0.M3 and <2.0.0.M5",
"Finchley.M3": "Spring Boot >=2.0.0.M5 and <=2.0.0.M5",
"Finchley.M4": "Spring Boot >=2.0.0.M6 and <=2.0.0.M6",
"Finchley.M5": "Spring Boot >=2.0.0.M7 and <=2.0.0.M7",
"Finchley.M6": "Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1",
"Finchley.M7": "Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2",
"Finchley.M9": "Spring Boot >=2.0.0.RELEASE and <=2.0.0.RELEASE",
"Finchley.RC1": "Spring Boot >=2.0.1.RELEASE and <2.0.2.RELEASE",
"Finchley.RC2": "Spring Boot >=2.0.2.RELEASE and <2.0.3.RELEASE",
"Finchley.SR4": "Spring Boot >=2.0.3.RELEASE and <2.0.999.BUILD-SNAPSHOT",
"Greenwich.BUILD-SNAPSHOT": "Spring Boot >=2.1.14.BUILD-SNAPSHOT and <2.2.0.M4",
"Greenwich.M1": "Spring Boot >=2.1.0.M3 and <2.1.0.RELEASE",
"Greenwich.SR5": "Spring Boot >=2.1.0.RELEASE and <2.1.14.BUILD-SNAPSHOT",
"Hoxton.BUILD-SNAPSHOT": "Spring Boot >=2.3.0.BUILD-SNAPSHOT",
"Hoxton.SR3": "Spring Boot >=2.2.0.M4 and <2.3.0.BUILD-SNAPSHOT"
},
"spring-cloud-alibaba": {
"2.2.0.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1"
},
"spring-cloud-services": {
"2.0.3.RELEASE": "Spring Boot >=2.0.0.RELEASE and <2.1.0.RELEASE",
"2.1.7.RELEASE": "Spring Boot >=2.1.0.RELEASE and <2.2.0.RELEASE",
"2.2.3.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1"
},
"spring-statemachine": {
"2.0.0.M4": "Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1",
"2.0.0.M5": "Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2",
"2.0.1.RELEASE": "Spring Boot >=2.0.0.RELEASE"
},
"vaadin": {
"10.0.17": "Spring Boot >=2.0.0.M1 and <2.1.0.M1",
"14.1.20": "Spring Boot >=2.1.0.M1"
}
},
"build": {
"artifact": "start-site",
"group": "io.spring.start",
"name": "start.spring.io website",
"time": "2020-03-19T13:45:29.062Z",
"version": "0.0.1-SNAPSHOT",
"versions": {
"initializr": "0.9.0.BUILD-SNAPSHOT",
"spring-boot": "2.2.5.RELEASE"
}
},
"dependency-ranges": {
"camel": {
"2.22.4": "Spring Boot >=2.0.0.M1 and <2.1.0.M1",
"2.24.3": "Spring Boot >=2.1.0.M1 and <2.2.0.M1",
"3.1.0": "Spring Boot >=2.2.0.M1"
},
"geode": {
"1.2.5.RELEASE": "Spring Boot >=2.2.0.M5 and <2.3.0.M1",
"1.3.0.BUILD-SNAPSHOT": "Spring Boot >=2.3.0.BUILD-SNAPSHOT",
"1.3.0.M2": "Spring Boot >=2.3.0.M1 and <2.3.0.BUILD-SNAPSHOT"
},
"mybatis": {
"2.0.1": "Spring Boot >=2.0.0.RELEASE and <2.1.0.RELEASE",
"2.1.2": "Spring Boot >=2.1.0.RELEASE"
},
"okta": {
"1.2.1": "Spring Boot >=2.1.2.RELEASE and <2.2.0.M1",
"1.4.0": "Spring Boot >=2.2.0.M1"
},
"solace": {
"3.1.0": "Spring Boot >=2.1.0.RELEASE and <2.2.0.M1",
"3.2.0": "Spring Boot >=2.2.0.M1"
}
},
"git": {
"branch": "6a8d5ce9a63e30db3fa1c23c64a6b7cef2072c71",
"commit": {
"id": "6a8d5ce",
"time": "2020-03-19T13:43:47Z"
}
}
}
Springboot的版本介绍
Alpha:
不建议使用,主要是以实现软件功能为主,通常只在软件开发者内部交流,Bug较多;
Beta:
该版本相对于α版已有了很大的改进,消除了严重的错误,但还是存在着一些缺陷,需要经过多次测试来进一步消除;
GA:
General Availability,正式版本,官方推荐使用此版本,在国外都是用GA来说明release版本;
M:
又叫里程碑版本,表示该版本较之前版本有功能上的重大更新;
PRE(不建议使用):
预览版,内部测试版,主要是给开发人员和测试人员测试和找BUG用的;
Release:
最终版本,Release不会以单词形式出现在软件封面上,取而代之的是符号®;
RC:
该版本已经相当成熟了,基本上不存在导致错误的BUG,与即将发行的正式版相差无几;
SNAPSHOT:
快照版,可以稳定使用,且仍在继续改进版本。
SpringCloud版本介绍
springcloud官网
Spring Cloud并没有熟悉的数字版本号,而是对应一个开发代号
版本名称 | 版本号 |
---|---|
Finchley | snapshot版 |
Edgware | snapshot版 |
Dalston SR1 | 当前最新稳定版本 |
Camden SR7 | 稳定版本 |
Brixton SR7 | 稳定版本 |
Angel SR6 | 稳定版本 |
下一篇讲 如何整合 Springcloud 与nacos 减少可预见的错