fix: 统一 Web 异常的 HTTP 错误语义

- 支持业务异常声明 HTTP 状态、业务错误码与原始根因

- 规范参数错误、框架异常和未知异常的安全响应
This commit is contained in:
2026-07-17 19:54:27 +08:00
parent 1e6158be77
commit ba21f861f4
6 changed files with 410 additions and 32 deletions

View File

@@ -72,6 +72,19 @@
<artifactId>jakarta.validation-api</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring-boot.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>