We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7df2acf commit 8658e2bCopy full SHA for 8658e2b
src/main/java/top/whgojp/security/SecurityConfigurer.java
@@ -116,8 +116,9 @@ protected void configure(HttpSecurity http) throws Exception {
116
.successHandler(authenticationSuccessHandler())
117
.failureHandler(customSimpleUrlAuthenticationFailureHandler());
118
119
-
120
- http.exceptionHandling().authenticationEntryPoint(new HttpStatusEntryPoint(HttpStatus.BAD_REQUEST));
+ // TODO: 2025/1/12 解决登录就报错400状态码问题 GPT害死人啊 注释后就没问题了
+ // 设置自定义的未认证用户访问受保护资源时的响应行为,并在用户未通过认证时返回 HTTP 状态码 400 BAD_REQUEST
121
+// http.exceptionHandling().authenticationEntryPoint(new HttpStatusEntryPoint(HttpStatus.BAD_REQUEST));
122
123
http.logout()
124
.logoutSuccessHandler(customLogoutSuccessHandler())
0 commit comments