
Spring Security中配置AccessDeniedHandler没有生效
在 WebSecurityConfigurerAdapter 配置了如下代码:// 自定义未授权和未登录异常http.exceptionHandling() .accessDeniedHandler(new RestAccessDeniedHandler()) .authenticationEntryPoint(new RestAuthenticationEntryPoint());在 Controller 层 REST 接口中添加有 @PreAuthorize














