我用来AuthenticationEntryPoint处理身份验证问题。将异常原因传递给最终用户。
response.sendError(responseCode, "errorReason")
Run Code Online (Sandbox Code Playgroud)
我最近将 Spring Boot 从“2.2.11.RELEASE”升级到“2.4.4”。从那时起它就不再工作了。它现在没有在客户端收到的响应中提供“errorReason”。spring-boot 最近引入了我所缺少的任何更改吗?