當前位置:
首頁 > 最新 > 重磅:Spring Boot 2.0 正式發布!

重磅:Spring Boot 2.0 正式發布!

原文:本文轉自微信公眾號「架構之路「

Spring Boot 2.0 正式發布!

2018/03/01最新消息,傳得沸沸揚揚的Spring Boot 2.0 正式發布了。

小編去看了下Spring Boot的官網,正式版本已經釋放出來了!!!

這個版本更是歷經了17個月,超過了215個人共同開發,總共超過6800次+提交完成的。這個版本是繼4年前Spring Boot 1.0 之後的第一個主要版本,也是第一個正式支持Spring Framework 5.0的發行版本。

我們也從Github上Spring Boot發布版本列表中看到了Spring Boot 2.0 的正式發布版本,版本號:v2.0.0.RELEASE。

Spring Boot版本發布列表:https://github.com/spring-projects/spring-boot/releases/

Spring Boot 2.0 新特性

說了這麼多,Spring Boot 2.0 和 1.0 比都有哪些變動和新特性呢?

JDK最低要求1.8+,並支持1.9;

支持Spring webflux/webflux.fn響應式的web編程;

提供Spring Data Cassandra, MongoDB, Couchbase和Redis的響應式自動配置及starter POMs;

支持嵌入式的Netty;

HTTP/2的支持:Tomcat, Undertow and Jetty;

全新的體系結構,支持Spring MVC、WebFlux和Jersey;

增強了Micrometer集成,以Atlas, Datadog, Ganglia, Graphite, Influx, JMX, New Relic, Prometheus, SignalFx, StatsD and Wavefront為基礎的度量指標;

Quartz調度支持;

極大簡化了安全自動配置;

更多詳細的新特性請看官方說明: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0-Release-Notes

需要注意的是,許多配置屬性在 Spring Boot 2.0 中已經被重命名或被刪除,為了方便從 1.x 升級,Spring Boot 發布了一個新的 spring-boot-properties-migrator 模塊。只要將其作為依賴添加到項目中,它不僅會分析應用程序的環境並在啟動時列印診斷信息,而且還會在運行時階段為項目臨時將屬性遷移至新的配置方式。

升級文檔:https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0-Migration-Guide


喜歡這篇文章嗎?立刻分享出去讓更多人知道吧!

本站內容充實豐富,博大精深,小編精選每日熱門資訊,隨時更新,點擊「搶先收到最新資訊」瀏覽吧!


請您繼續閱讀更多來自 Java技術棧 的精彩文章:

TAG:Java技術棧 |