본문 바로가기

백엔드/Spring

Security 3.1.4 - Method 'setLoginFormUrl' is marked deprecated


Security 3.1.4를 사용하면서 LoginUrl 설정을 하면서 아래와 같은 워닝을 보았다.. 
	
		
		
	

확인해 본 결과 아래와 같이 변경 되었다..

org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.setLoginFormUrl(String) 
          use constructor injection 

그러므로 아래와 같이 변경해준다..
	
		
		
	


아래는 deprecated 된 항목을 살펴볼 수 있는 URL.

http://static.springsource.org/spring-security/site/docs/3.1.x/apidocs/deprecated-list.html