Spring Framework 5.2.3 发布了,本次更新包含大量新特性和 bug 修复,摘取部分如下:
新特性
- 更新 CORS 支持 #24327
- 改进 AopContext.currentProxy() 中的异常消息 #24321
- 仅修剪 LineInfo 中的行 #24310
- 合并 getCallableInterceptors 和 getDeferredResultInterceptors #24305
- 优化 SimpleAliasRegistry hasAlias 实现 #24295
- 改进 ExposeInvocationInterceptor 异常消息 #24293
- 添加对在 ResourceHttpMessageConverter 和 ResourceDecoder 中创建的 InputStreamResource 的 ContentLength 支持 #24292
- 为 ClassUtils.hasMethod 添加快速路径 #24282
Bug Fixes
- 与 maxInMemorySize 限制有关的 StringDecoder 缓冲区泄漏 #24339
- 克隆 WebClient.Builder 实例不会复制策略 #24329
- 当参数包含枚举时,SimpleKey 包含反序列化上的无效哈希码 #24320
- ServerSentEventHttpMessageReader 不遵守 maxInMemorySize,并且始终限于 256k 条消息 #24312
- SpelExpression#compileExpression 中的不安全的双重检查锁定 #24265
更新说明: https://github.com/spring-projects/spring-framework/releases/tag/v5.2.3.RELEASE
(文/开源中国)