英文:
Which spring-security version is compatible with Spring 5.2.8.RELEASE?
问题
我有一个现有的Spring MVC项目,我正在使用Spring 4.3.23.RELEASE版本和Spring Security 4.2.13.RELEASE版本。现在我想升级Spring版本到5.2.8.RELEASE。我不知道哪个Spring Security版本与Spring 5.2.8.RELEASE版本兼容?
英文:
I have an existing spring mvc project where I'm using spring 4.3.23.RELEASE version with spring security 4.2.13.RELEASE.
Now I want to upgrade the spring version 5.2.8.RELEASE. I don't identify which spring-security version is compatible with Spring 5.2.8.RELEASE version?
答案1
得分: 1
通常情况下,Spring Security参考手册会提供答案。例如,Spring Security 5.2.5 RELEASE的手册中提到:
Spring Security构建于Spring Framework 5.2.6.RELEASE,但通常应与任何新版本的Spring Framework 5.x一起使用。
(Spring Security 5.2.5之后的下一个版本是5.3.0。)
因此,我预计Spring Security 5.2.5应该能与Spring Framework 5.2.8一起工作。
Spring Security参考手册还建议您使用“spring-framework-bom”来简化依赖管理。这个想法是您选择一个特定的“bom”版本,然后它会为您提供与您使用的任何Spring组件兼容的版本号。
英文:
Generally speaking, the Spring Security Reference manual will answer this. For example, the manual for the Spring Security 5.2.5 RELEASE says:
> Spring Security builds against Spring Framework 5.2.6.RELEASE but should generally work with any newer version of Spring Framework 5.x.
(The next release of Spring Security after 5.2.5 is 5.3.0.)
So I would expect Spring Security 5.2.5 would work with Spring Framework 5.2.8.
The Spring Security Reference manual also advises you to use "spring-framework-bom" to simplify dependency management. The idea is that you select a specific "bom" version and that gives you a set of compatible versions numbers for any of the Spring components that you use.
答案2
得分: 0
Spring文档是最好的信息源,但如果您仍然不清楚,可以采用以下方法。
由于Spring Security依赖于Spring Framework,可以查看Spring Security的依赖树以确定与Spring Framework兼容的版本。
现在,这可能需要一些迭代,但最终会得到准确的结果。
请参考maven仓库页面中的编译依赖部分。
英文:
Spring documentation is the best source, but in case you are still unclear then the following approach can be taken.
As Spring Security depends on Spring Framework, one can look at the dependency tree of Spring Security to identify the compatible version of Spring Framework.
Now this can take some iterations but in the end one would get an accurate result.
Refer to the compile dependencies section in the maven repository page
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论