refactor(common-web): 优化 Web 基础配置与请求处理

- 修复可重复读取请求体包装器的 ServletInputStream 状态判断
  - 将 XSS 过滤器改为构造器注入配置,移除静态 Spring Bean 获取
  - 增加 CORS 配置属性,支持通过 web.cors.* 配置跨域规则
  - 优化请求日志参数处理,避免 JSON 解析异常影响主请求并限制日志长度
  - 收敛请求体解析异常响应,避免向前端暴露底层异常细节
This commit is contained in:
疯狂的狮子Li
2026-05-16 17:16:16 +08:00
parent 63cd82f4a8
commit f171ac03c4
9 changed files with 101 additions and 105 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
</exclusion>
</exclusions>
</dependency>
<!-- web 容器使用 undertow 性能更强 -->
<!-- web 容器使用 jetty -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>