随笔分类 -  SpringSecurity

摘要:A granted authority textual representation is required 是查询出的权限有null值 阅读全文
posted @ 2022-10-11 17:55 Arborblog 阅读(64) 评论(0) 推荐(0) 编辑
摘要:配置了异常accessDeniedHandler被全局异常捕获了不生效 //配置异常处理器 //认证失败处理器 http.exceptionHandling() .authenticationEntryPoint(authenticationEntryPoint) //授权失败处理器 .access 阅读全文
posted @ 2022-09-29 14:27 Arborblog 阅读(300) 评论(0) 推荐(1) 编辑
摘要:进行springSecurity和redis存储序列化,实现UserDetails 的方法后会对出几个属性 最后通过注解 @Bean public RedisTemplate<String, ?> redisTemplate(RedisConnectionFactory factory) { Str 阅读全文
posted @ 2022-09-29 11:28 Arborblog 阅读(1312) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示