OAuth2AuthenticationProcessingFilter中作为filter拦截认证会借助tokenExtractor从request中获取token的值,将其转换为Authentication 对象。
图1 UserDetailsService的类图
update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';