当我在项目中包含 spring-boot 时,它具有其他 spring 组件的预定义版本。例如:带有 spring-boot-starter-web 的 spring-boot 1.3.5 自动包含 spring-mvc 4.2.6。如果我想使用 webmvc 4.3 中的某些功能,我怎么知道它们是否兼容?有兼容性矩阵吗?还是我应该将其视为单一版本而不更改版本?
最佳答案
如果您不尝试抵制默认值(当然只有在必要时才更改它们),Spring Boot 将最适合您。您可以将 Spring 4.3 包含到 Spring boot 1.3.x 项目中,但我想您会遇到各种问题。
1.4.0 版将包含 Spring 4.3。 Spring Boot 1.4.0 is on Milestone 3 currently .
顺便说一句, spring boot的兼容版本 1.5 倍:https://docs.spring.io/spring-boot/docs/1.5.x/reference/html/appendix-dependency-versions.html
对于 spring boot 2.0x: https://docs.spring.io/spring-boot/docs/2.0.x/reference/html/appendix-dependency-versions.html
关于java - spring-boot 和 spring-mvc 兼容性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37877254/