Spring Framework 5.2.2 发布了,本次更新包含上百项新特性和 bug 修复,摘取部分如下:
新特性
- 提供自定义编解码器的默认编解码器配置回调 #24118
- 添加 protobuf MessageConverter #24087
- 完善 Spring WebSocket 中的 Throwable 处理 #24075
- 改进 MockMultipartHttpServletRequest 中零件内容类型的确定 #24074
- ExtendedBeanInfo.PropertyDescriptorComparator 中的 String.getBytes() 缓存结果 #24072
- 使用 String.isEmpty() 代替 String.equals("") #24052
- IOException 与 WebFlux 在 Jetty 上“待处理/未就绪时关闭” #24050
- 避免在 StringUtils.replace 中分配子字符串 #24023
- 使用 @MessageMapping 方法签名来约束 RSocket 交互模型 #23999
- ……
Bug 修复
- 连接到 RSocket 时为空指针 #24088
- 回归:不再识别在超类中声明的 @Inherited 注释 #24077
- RSocketRequester 允许多次指定数据 #24073
- 修改 AbstractBeanDefinition 等于实现 #24048
- SqlRowSet 访问器方法应标记为 @Nullable #24042
- 对 SynthesizedMergedAnnotationInvocationHandler 中的注释的 .value() 的不安全调用会阻止向后兼容的注释添加 #24029
- ……
详情见更新说明:
https://github.com/spring-projects/spring-framework/releases/tag/v5.2.2.RELEASE
(文/开源中国)