spring-boot Service

What’s New in Spring Boot 2.0?

Spring Boot 2.0 was a major upgrade to the original Spring Boot. The first version was introduced to help create stand-alone and production-grade Spring applications effortlessly. Version 2.0 extends support to the Spring Framework 5.0, and has been launched with some enhancements that will make the developer’s life easy.

Spring Boot 2.0: Feature Highlights

1. Java 8 Baseline:  The codebase for the new version has been rebased on Java 8. As a result, the new version requires you to install the Java 8 and above versions if you want to introduce new features to your application.

2. Spring Framework 5.0:  Spring Framework 5.0, which has introduced some noteworthy features comes with some refined enhancements. The Spring Boot 2.0 comes with auto configuration for the Spring WebFlux annotation based applications as well as Webflux.fn applications.

3. The Gradle Plugin:  The new version has introduced Gradle plugin 4.x, which has come with some feature and functional enhancements. Fat jars and wars can be created using bootjar and bootwar. To run the apps using the gradle plugin, you need the JavaExec for gradle. This means, now you can easily configure the bootrun using the JavaExec tasks.

4. Support for Kotlin 1.2.x:  You can use runApplication function, which allows you to run any Spring Boot application using Kotlin.

5. Better Development:  The devtools introduced in the new version has led to an enhanced development experience. Immediate feedback and detection of bugs has led to streamlining all the development related issues. The Devtools no longer extend support for remote debugging with HTTP.