ログインとログアウトのページで、私のSpring-MVCで別のユーザー名を使用したいと思っています。UsernamePasswordAuthenticationFilterクラスのメソッドをオーバーライドすると、春のセキュリティでエラーが表示される
私はリンクの下から研究していると私は春4.2.5使用しています:
http://www.raistudies.com/spring-security-tutorial/role-based-spring-jsp-taglibs/
が、私のクラスのいずれかがエラーを示している。
public class AjaxAuthenticationProcessingFilter extends
UsernamePasswordAuthenticationFilter {
@Override
protected void successfulAuthentication(HttpServletRequest request,
HttpServletResponse response, Authentication authResult)
throws IOException, ServletException {
super.successfulAuthentication(request, response, authResult);
}
}
Eclipseの鍛えコンパイル時エラーをオンメソッド
The method successfulAuthentication(HttpServletRequest, HttpServletResponse, Authentication) of type AjaxAuthenticationProcessingFilter must override or implement a supertype method
と他のエラーは私がsuccessfulAuthentication
メソッド スーパークラスsuper.successfulAuthentication(request, response, authResult);
を呼び出します。
あなたはエラーが下記の見ることができます:
The method successfulAuthentication(HttpServletRequest, HttpServletResponse, FilterChain, Authentication) in the type AbstractAuthenticationProcessingFilter is not applicable for the arguments (HttpServletRequest, HttpServletResponse, Authentication)
誰もが異なる役割を持つ別のユーザーを実装するために春のセキュリティのための任意のリンクを知っているならば、私は春-XML設定の助けを借りてお知らせください。
助けのためのあなたの輸入 –