refactor: 封装 Spring Boot 默认错误处理

1.排除路径配置放开 /error,以防止出现默认错误处理却显示为 401 的问题(例如:404 被识别为 401)
2.封装 Spring Boot 默认错误处理,统一响应结构
This commit is contained in:
2023-09-10 11:17:47 +08:00
parent 2254e555af
commit b874ca0782
4 changed files with 97 additions and 1 deletions

View File

@@ -116,6 +116,7 @@ captcha:
--- ### 安全配置-排除路径配置
security.excludes:
- /error
# 静态资源
- /*.html
- /**/*.html

View File

@@ -116,6 +116,7 @@ captcha:
--- ### 安全配置-排除路径配置
security.excludes:
- /error
# 静态资源
- /*.html
- /**/*.html