博客
关于我
Spring Boot 2.2.0.RELEASE 正式发布
阅读量:425 次
发布时间:2019-03-06

本文共 1158 字,大约阅读时间需要 3 分钟。

Spring Boot 2.2.0发布:全新功能与性能优化

Spring Boot团队很高兴宣布,Spring Boot 2.2.0已经正式发布!这一版本带来了许多令人期待的新功能和改进,值得每一位开发者仔细了解。

1. 依赖更新

本次发布版本对核心依赖项进行了全面升级,确保你使用的是最新稳定的版本:

  • Spring AMQP 2.2
  • Spring Batch 4.2
  • Spring Data Moore
  • Spring Framework 5.2
  • Spring HATEOAS 1.0
  • Spring Integration 5.2
  • Spring Kafka 2.3
  • Spring Security 5.2
  • Spring Session Corn
  • Elasticsearch 6.7
  • Flyway 6.0
  • Jackson 2.10
  • JUnit 5.5
  • Micrometer 1.3
  • Reactor Dysprosium
  • Solr 8.0

2. 性能提升

在性能方面,我们做出了显著的改进。应用程序启动速度更快,内存占用更低,这对于资源严格受限的环境尤为重要。

3. 延迟初始化

你可以通过设置spring.main.lazy-initialization属性来启用全局延迟初始化,从而减少启动时间。需要注意的是,此功能可能会影响HTTP请求处理的性能。

4. Java 13支持

随着Spring Framework 5.2对Java 13的支持,Spring Boot 2.2.0也全面支持Java 13,同时仍然兼容Java 11和Java 8。

5. @ConfigurationProperties支持

配置属性现在支持基于构造函数的绑定,允许带有@ConfigurationProperties注解的类实现不可变。通过在配置类或构造函数注解@ConstructorBinding,你可以更灵活地管理配置属性。

6. RSocket支持

Spring Boot新增了spring-boot-starter-rsocket组件,结合Spring Security的RSocket集成,当spring-security-rsocket在类路径上时,RSocket支持会自动配置。

7. 应用健康指标分组

你可以将Spring Boot应用的健康指标分组。例如,通过配置management.endpoint.health.group.custom.include=db,你可以创建仅包含DataSource指标的自定义组,然后通过/actuator/health/custom端点调用。

8. 其他变化

此外,文档中还详细记录了许多其他改进和不推荐使用的类和方法的移除。

关注公众号:Felordcn获取更多资讯!

转载地址:http://zvjuz.baihongyu.com/

你可能感兴趣的文章
npm install 卡着不动的解决方法
查看>>
npm install 报错 EEXIST File exists 的解决方法
查看>>
npm install 报错 ERR_SOCKET_TIMEOUT 的解决方法
查看>>
npm install 报错 Failed to connect to github.com port 443 的解决方法
查看>>
npm install 报错 fatal: unable to connect to github.com 的解决方法
查看>>
npm install 报错 no such file or directory 的解决方法
查看>>
npm install 权限问题
查看>>
npm install报错,证书验证失败unable to get local issuer certificate
查看>>
npm install无法生成node_modules的解决方法
查看>>
npm install的--save和--save-dev使用说明
查看>>
npm node pm2相关问题
查看>>
npm run build 失败Compiler server unexpectedly exited with code: null and signal: SIGBUS
查看>>
npm run build报Cannot find module错误的解决方法
查看>>
npm run build部署到云服务器中的Nginx(图文配置)
查看>>
npm run dev 和npm dev、npm run start和npm start、npm run serve和npm serve等的区别
查看>>
npm run dev 报错PS ‘vite‘ 不是内部或外部命令,也不是可运行的程序或批处理文件。
查看>>
npm scripts 使用指南
查看>>
npm should be run outside of the node repl, in your normal shell
查看>>
npm start运行了什么
查看>>
npm WARN deprecated core-js@2.6.12 core-js@<3.3 is no longer maintained and not recommended for usa
查看>>