What is new in Spring Boot 2
Upasana | May 20, 2019 | 2 min read | 104 views | Spring Boot 2
Whats new in Spring Boot 2
Here are Spring Boot 2 highlights:
Spring boot 2 is liberated from legacy baggage of deprecated Java releases. Java 8 is the minimum baseline, with Java 9 support. Under the hood Spring Boot 2 uses Spring 5.
Reactive web programming support with Spring Webflux. Find out more here
Auto-configuration and starter POMs for reactive Spring Data Cassandra, MongoDB, Couchbase and Redis.
Supports embedded Netty, along with HTTP/2 support for Tomcat, Undertow and Jetty.
Kotlin us supported in Spring Boot 2, along with Junit 5. Now you can write Spring Boot 2 application from scratch in Kotlin. https://kotlinlang.org/docs/tutorials/spring-boot-restful.html
A brand new actuator architecture, with support for Spring MVC, WebFlux and Jersey.
Simplified security auto-configuration.
Uses Spring Framework 5 under the hood.
Gradle 4 required, works well with Gradle 5.
You can head to https://start.spring.io/ to start creating a new Spring Boot 2 based project.
Migrating from older versions
This migration guide can help if you are planning to upgrade from Spring Boot 1.5 to 2.x:
Top articles in this category:
- Basic Auth Security in Spring Boot 2
- Feign RequestInterceptor in Spring Boot
- Redis rate limiter in Spring Boot
- SendGrid emails in Spring Boot
- Setting a Random Port in Spring Boot Application at startup
- Running Spring Boot app as a service in unix
- Sendgrid Dynamic Templates with Spring Boot