随笔分类 - SpringSecurity
摘要:A granted authority textual representation is required 是查询出的权限有null值
阅读全文
摘要:配置了异常accessDeniedHandler被全局异常捕获了不生效 //配置异常处理器 //认证失败处理器 http.exceptionHandling() .authenticationEntryPoint(authenticationEntryPoint) //授权失败处理器 .access
阅读全文
摘要:进行springSecurity和redis存储序列化,实现UserDetails 的方法后会对出几个属性 最后通过注解 @Bean public RedisTemplate<String, ?> redisTemplate(RedisConnectionFactory factory) { Str
阅读全文