Spring,jdk,maven
Spring boot 版本 | Spring Framework | jdk 版本 | maven 版本 |
2.2.x | 5.x.x | ||
2.1.x | 5.1.x | 8-12 建议8 | |
2.0.x | 5.0.x | ||
2.0.14 | 5.0.14 | 8-10建议8 | |
2.0.0 | 5.0.2 | 8 | 3.2+ |
4.3.24到2020年6月停止维护 | 6 - 8,建议 7 or 8 | ||
1.5.9 | 4.3.13 | 7 | 3.2+ |
1.5.8 | 4.3.12 | 7 | 3.2+ |
1.5.7 | 4.3.11 | 7 | 3.2+ |
1.5.5 | 4.3.10 | 7 | 3.2+ |
1.5.4 | 4.3.9 | 7 | 3.2+ |
1.5.3 | 4.3.8 | 7 | 3.2+ |
1.5.2 | 4.3.7 | 7 | 3.2+ |
1.5.0 | 4.3.6 | 7 | 3.2+ |
1.4.7 | 4.3.9 | 7 | 3.2+ |
1.4.6 | 4.3.8 | 7 | 3.2+ |
1.4.5 | 4.3.7 | 7 | 3.2+ |
1.4.4 | 4.3.6 | 7 | 3.2+ |
1.4.3 | 4.3.5 | 7 | 3.2+ |
1.4.2 | 4.3.4 | 7 | 3.2+ |
1.4.1 | 4.3.3 | 7 | 3.2+ |
1.4.0 | 4.3.2+ | 7 | 3.2+ |
1.3.8 | 4.2.8+ | 7 | 3.2+ |
1.3.7 | 4.2.7+ | 7 | 3.2+ |
1.3.6 | 4.2.7+ | 7 | 3.2+ |
1.3.4 | 4.2.6+ | 7 | 3.2+ |
1.2.3 | 4.1.5+ | 7 | 3.2+ |
1.2.1 | 4.1.3+ | 7 | 3.2+ |
1.2.0 | 4.1.3+ | 6 | 3.2+ |
1.2.0 版本之前 | 6 | 3.0 | |
3.2.18已停止维护 | 5 |
Tomcat
官网给的版本信息:http://tomcat.apache.org/whichversion.html
Servlet Spec | JSP Spec | EL Spec | WebSocket Spec | JASPIC Spec | Apache Tomcat Version | Latest Released Version | Supported Java Versions |
4.0 | 2.3 | 3.0 | 1.1 | 1.1 | 9.0.x | 9.0.21 | 8 and later |
3.1 | 2.3 | 3.0 | 1.1 | 1.1 | 8.5.x | 8.5.42 | 7 and later |
3.1 | 2.3 | 3.0 | 1.1 | N/A | 8.0.x (superseded) | 8.0.53 (superseded) | 7 and later |
3.0 | 2.2 | 2.2 | 1.1 | N/A | 7.0.x | 7.0.94 | 6 and later(7 and later for WebSocket) |
2.5 | 2.1 | 2.1 | N/A | N/A | 6.0.x (archived) | 6.0.53 (archived) | 5 and later |
2.4 | 2.0 | N/A | N/A | N/A | 5.5.x (archived) | 5.5.36 (archived) | 1.4 and later |
2.3 | 1.2 | N/A | N/A | N/A | 4.1.x (archived) | 4.1.40 (archived) | 1.3 and later |
2.2 | 1.1 | N/A | N/A | N/A | 3.3.x (archived) | 3.3.2 (archived) | 1.1 and later |
Mybatis与Spring
见官网信息:https://mvnrepository.com/artifact/org.mybatis/mybatis-spring
点进去某一个版本后,在下边可以看到如下内容
SpringBoot与SpringCloud
官网信息:Spring Cloud
Release Train(SpringCloud) | Boot Version(SpringBoot) |
Hoxton | 2.2.x |
Greenwich | 2.1.x |
Finchley | 2.0.x |
Edgware | 1.5.x |
Dalston | 1.5.x |
Greenwich builds and works with Spring Boot 2.1.x, and is not expected to work with Spring Boot 1.5.x。
版本组合问题
虽然官网明确给出了版本的对应,但有时候还会出错。
复现:
springboot(2.1.12.Release) + springcloud(Greenwich.SR3),使用配置中心和注册中心组合时没有问题,但在将RabbitMq添加进去时,发现没有创建rabbitmq连接,而且报警告:
2020-03-31 22:37:26.792 WARN 11384 --- [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'bus-env' contains invalid characters, please migrate to a valid format.
2020-03-31 22:37:26.970 WARN 11384 --- [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'bus-refresh' contains invalid characters, please migrate to a valid format.
2020-03-31 22:37:27.009 WARN 11384 --- [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
原因:
经上网查看,发现这是一个已知问题,作者正在修复。
解决方法:
用稍老一点的版本:2.0.6.Release + Finchley.SR2。(2.0.x与Finchley匹配基本都可以)。