@Resource
private AuthenticationManager authenticationManager;
authenticationManager拥有多个实现类
调用authenticate方法时去校验用户名和密码时去调用了ProviderManager实现类中authenticate方法
authentication = authenticationManager
.authenticate(new UsernamePasswordAuthenticationToken(username, password));
不知道是在哪里指定的?可以解释一下嘛