Spring Boot 2.7.0 Released


Spring Boot 2.7.0 Released

Spring Boot version 2.7.0 is released with the new features and many updates. In this tutorial we are going to explore the features of Spring Boot 2.7.0.

Spring Boot version 2.7.0 is released with the new features and many updates. In this tutorial we are going to explore the features of Spring Boot 2.7.0.

Spring Boot 2.7.0 Released - Check Spring Boot 2.7.0 new features and updates

Yet, another updated version of Spring Boot is here with the release of Spring Boot 2.7.0 that comes with the support for GraphQL, Podman and Cache2k. VMware announced the release of Spring Boot 2.7.0 in June 2022. This release is the latest and final branch of the 2.x series.

VMWare is already working on Spring Boot 3.0, which is planned to be released in November 2022. Spring Boot 3 will be the next version and comes with many new features and improvements for seamless application development.

The Major change in the Spring Boot 2.7.0 is the support for Spring for GraphQL 1.0, the support for the Podman container engine(an alternative to Docker Engine). The Podman container can be used during the building of images using Cloud Native Buildpacks. Spring Boot 2.7.0 supports the dependency management and auto-configuration for Cache2k. In Spring Boot the support for Cache2k started with Spring 5 and Spring Boot 2. The Cache2k is used as light-weight, in-memory Java caching library.

Spring Boot 2.7.0

Spring Boot 2.7.0 also provides new test annotations for ElasticSearch and CouchBase. Now developers can use these annotations during development of applications.

In Spring Boot 2.7.0 the JavaInfoContributor and OsInfoContributor classes come with the improvements, which allows to expose more information about the Java version, its vendor and underlying OS. So, more information is now available to the programmer in their application code. So, under the info endpoint we have more information.

In many projects developers are using the custom auto-configurations, in such scenarios the registration must be moved from spring.factories to a new file META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports.

Spring Boot 2.7.0 introduced a new @AutoConfiguration annotation that can be used to annotate top-level auto-configuration classes that are listed in the new file referenced explained above.

Spring project updates

In the Spring Boot 2.7.0 following spring projects versions moved to new version:

● Spring Data 2021.2
● Spring Security 5.7
● Infinispan 13
● Micrometer 1.9
● Elasticsearch 7.17
● H2 2.1 and
● Flyway 8.5

So, with Spring Boot 2.7.0 we are getting new version of many libraries.

Spring Boot supports GraphQL and in this version of Spring Boot developers can configure the clients and servers with new Spring Boot starter and annotations. Through configuration open-source data query and manipulation language for APIs can also be configured. GraphQL is a popular query language for querying the data and it is now being used extensively in major software projects. GraphQL was developed by Facebook in 2012 and later it was publicly released in 2015.

Spring Boot 2.x was released in 2018 and version 2.7.0 is released with many features. Spring Boot 3.0 will be released in 2022. Spring Boot is a very popular framework for easy application configuration, building and deployment. All these can be done very easily and with minimal configuration changes. According to the various surveys Spring Boot is one of the most popular frameworks for Java.

The Spring Boot 2.5 has already reached end of life for open source support, but the commercial support will be available until August 2023.

Spring and Spring Major release is planned this year (2022)

The Spring Framework 6.0 and Spring Boot 3.0 are already under development and expected to be released later this year (2022). This version of Spring and Spring Boot will use Jakarta EE 9 APIs (jakarta.* namespace) instead of the heritage Java EE 8 APIs (javax.* namespace). This will be the first version with the Jakarta EE 9 API.

The AOT (ahead-of-time) compilation and native executables will be supported by Spring Boot 3.0, which is a major change.

Related Tutorials