Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use Spring Boot 2.0.0

Shulou Source: shulou.com Published: 2022-06-03 13:42:15 11月14日 Update

This article mainly introduces how to use Spring Boot 2.0.0, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Use Spring Boot 2.0.0 GA

Maven

Org.springframework.boot spring-boot-starter-parent 2.0.0.RELEASE org.springframework.boot spring-boot-starter-web

Gradle

Dependencies {compile ("org.springframework.boot:spring-boot-starter-web:2.0.0.RELEASE")}

Spring Boot 2.0.1 is also marked as SNAPSHOT.

Maven

Org.springframework.boot spring-boot-starter-parent 2.0.1.BUILD-SNAPSHOT org.springframework.boot spring-boot-starter-web spring-snapshots Spring Snapshots https://repo.spring.io/libs-snapshot true

Gradle

Dependencies {compile ("org.springframework.boot:spring-boot-starter-web:2.0.1.BUILD-SNAPSHOT")} repositories {maven {url 'https://repo.spring.io/libs-snapshot'}}

Officials say the version has been under development for 17 months and has been submitted more than 6800 times by 215 different users. Thank you very much to all the users who contributed, and to all the early adopters who provided important feedback on these milestone versions.

This is the first major revision since the release of Spring Boot 1.0 four years ago, and the first stable version of GA that provides support for Spring Framework 5.0.

Highlights of the new version:

Based on Java 8, Java 9 is supported

Using Spring WebFlux/WebFlux.fn to provide responsive Web programming support

Support for embedded Netty

Tomcat, Undertow and Jetty all support HTTP/2

Support for Quartz scheduler

Greatly simplifies security automatic configuration

New actuator architecture that supports Spring MVC, WebFlux and Jersey

Thank you for reading this article carefully. I hope the article "how to use Spring Boot 2.0.0" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Support articles versions different important important security highlights value users new interest at the same time official embedded years ago more friends architecture tags Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi MySQL Shulou Information Redmi Huawei