'What is the Compatible version of Spring-security with spring-4.3.0-release?

Which version of spring security is compatible with Spring-4.3.0-release.

my jars are as follows

  • spring-aop-4.3.0.RELEASE.jar
  • spring-beans-4.3.0.RELEASE.jar
  • spring-context-4.3.0.RELEASE.jar
  • spring-context-support-4.3.0.RELEASE.jar
  • spring-core-4.3.0.RELEASE.jar
  • spring-expression-4.3.0.RELEASE.jar
  • spring-jdbc-4.3.0.RELEASE.jar
  • spring-orm-4.3.0.RELEASE.jar
  • spring-oxm-4.3.0.RELEASE.jar
  • spring-tx-4.3.0.RELEASE.jar
  • spring-web-4.3.0.RELEASE.jar

With Security jars

  • spring-security-config-3.2.5.RELEASE.jar
  • spring-security-core-3.2.5.RELEASE.jar
  • spring-security-web-3.2.5.RELEASE.jar


Solution 1:[1]

The documentation for spring security 4.2.x says that the current spring security version 4.2.x is compatible with 4.3.26 and 4.0.x.

For spring security 3.2.5 you should use spring 4.0.2 (doc for 3.2.5)

Solution 2:[2]

(Latest Version)

UPDATES - Spring Security 5.6.0

Spring Security 5.6.0 was released on 15 November 2021. This is a maintenance/bug fix release.

Spring Security 5.6.0 is compatible with Spring Framework 5.3.13

If you want to use the latest version, update your Maven POM file to use the compatible versions below

<springframework.version>5.3.13</springframework.version>
 
<springsecurity.version>5.6.0</springsecurity.version>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kacper Cichecki
Solution 2 Piyush Kumar