阅读背景:

必须指定spring security authenticationManager

来源:互联网 
@Component("MyAuthFilter")
public class MyAuthFilter extends UsernamePasswordAuthenticationFilter {

    @Override
    public void setAuthenticationManager(AuthenticationManager authenticationManager) {
        super.setAuthenticationManager(authenticationManager);
    }

    @Override
    public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)
            throws AuthenticationException {
...
}}
@Component("MyAuthFilter")
public class MyAuthF



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: