Tip/Spring

Controller 에서의 Async 사용시 Spring security 와의 충돌(?)

JavaPark 2013. 12. 16. 15:31

Controller 에서 Async 사용을 위해 Callable<String> 사용시 Spring security 와의 충돌 현상이 발생하였다. (즉, Spring security 의 세션 정보가 날라가는 현상이다. ) 


증상이 발생한 Spring, Security 버전

Spring version :  3.2.5.RELEASE

Spring security version : 3.1.4.RELEASE


Spring security 의 upgrade 버전에서는 해결하였다고 한다. 하지만 release 버전은 아니라는 점....


해결 버전

Spring version :  3.2.5.RELEASE

Spring security version : 3.2.0.RC2



참고 ) 

http://stackoverflow.com/questions/19107209/an-authentication-object-was-not-found-in-the-securitycontext-servlet-3-with-a