springsecurity
文章平均质量分 80
wwang_dev
人生苦短,我学java!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
关于自己实现的 UserDetailsService 中 loadUserByUsername() 方法中抛出的异常被隐藏
问题 自己实现的 UserDetailsService 中 loadUserByUsername() 方法中抛出了 UsernameNotFoundException,在全局异常处理器中进行了捕获和处理,但是为什么没有用 自定义 UserDetailsService @Slf4j @Service public class UserDetailsServiceImpl implements UserDetailsService { @Autowired SysUserService us原创 2021-07-26 14:23:12 · 6958 阅读 · 1 评论 -
AuthenticationManager 的 authentication 过程
1. 结论 // 调用链 AuthenticationManager.authenticate() --> ProviderManager.authenticate() --> DaoAuthenticationProvider(AbstractUserDetailsAuthenticationProvider).authenticate() // 处理 在最后的 authenticate() 方法中,调用了 UserDetailsService.loadUserByUsername() 并进原创 2021-07-26 13:08:29 · 15257 阅读 · 4 评论 -
什么是JWT(来自官网)
官网:JSON Web Token Introduction - jwt.io 什么是 JWT JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and.原创 2021-07-23 18:29:02 · 609 阅读 · 0 评论
分享