简单流程
用户点击登录后,
首先进入filter,比如UsernamePasswordAuthenticaionFilter,
然后调用filter的attemptAuthentication方法,
然后再在此方法中调用认证器的认证方法this.getAuthenticationManager().authencate(UsernamePasswordAuthenticationToken token)注意此token是根据输入法用户名和密码new出来的
简单流程
用户点击登录后,
首先进入filter,比如UsernamePasswordAuthenticaionFilter,
然后调用filter的attemptAuthentication方法,
然后再在此方法中调用认证器的认证方法this.getAuthenticationManager().authencate(UsernamePasswordAuthenticationToken token)注意此token是根据输入法用户名和密码new出来的