2012-10-05 3 views
1

는 기본적으로이 기반으로 오류가 메신저 :봄 보안 AuthenticationEntryPoint를가 ApplicationContext를

Caused by: java.lang.IllegalStateException: Cannot convert value of type [example.TestAuthFilterEntryPoint] to required type [org.springframework.security.web.AuthenticationEntryPoint] for property 'authenticationEntryPoint': no matching editors or conversion strategy found 
... 42 more 

만 나는 방법의 측면에서 뭔가 빠진 오전 AuthenticationEntryPoint를

import org.springframework.security.ui.AuthenticationEntryPoint; 
import org.springframework.security.AuthenticationException; 
public class TestAuthFilterEntryPoint implements AuthenticationEntryPoint, 
    InitializingBean {... 

으로이 클래스를 구현 기본적으로 메신저 이 "변환"제대로?

답변

1

당신이 구현해야하는 인터페이스는 봄 보안에 org.springframework.security.web 패키지에> = 3.0 (당신이 오류 메시지에있는 것처럼), 그래서해야한다 : 당신도 이것에 대해 알고있을!

import org.springframework.security.web.AuthenticationEntryPoint; 
import org.springframework.security.AuthenticationException; 
public class TestAuthFilterEntryPoint implements AuthenticationEntryPoint, 
    InitializingBean { 
    // ... 
+0

많은 감사 문제는 아주 유사하기 때문에. [org.springframework.security.authentication.ProviderManager] 유형의 값을 'authenticationManager'속성의 필수 유형 [org.springframework.security.AuthenticationManager]으로 변환 할 수 없습니다 : 일치하는 편집기 또는 변환 전략이 없습니다 –

+0

'AuthenticationManager'에 대해 google, 첫 번째 링크는 _AuthenticationManager (Spring Security 3.0.7.RELEASE API) _이며 클래스 패키지가 포함 된 JavaDocs를 가리 킵니다. 이것은 org.springframework.security.authentication에있다. – Xaerxess