Spring Security中配置AccessDeniedHandler没有生效
在 WebSecurityConfigurerAdapter 配置了如下代码:// 自定义未授权和未登录异常http.exceptionHandling() .accessDeniedHandler(new RestAccessDeniedHandler()) .authenticationEntryPoint(new RestAuthenticationEntryPoint());在 Controller 层 REST 接口中添加有 @PreAuthorize
原创
2021-10-27 10:09:40 ·
3141 阅读 ·
4 评论