The latest version of Spring Boot 2.6 available now !!
Overview
In this article, we begin exploring what change in Spring Boot latest version
What's new in Spring Boot 2.6.0
- For servlet applications, SameSite attributes on session cookies are supported.
- On the main or management port, there is ability for configuring health groups.
- Added Java Runtime information to the
/info
endpoint. WebTestClient
support for testing Spring MVC and for WebFlux apps.- Redis Connection Pooling : Once
commons-pool2
is on the classpath, Redis for Jedis and Lettuce would then automatically enable pooling. Spring-rabbit-stream
module added for auto-configuration of Spring AMQP's.- Pluggable rules for sanitising properties in
/env
andconfigprops
are now supported.
Spring Boot 2.6.0 Release Date :
Nov 18, 2021Download :
Source code (zip) Source code (tar.gz)Dependency Upgrades
- Spring Data 2021.1
- Spring HATEOAS 1.4
- Spring AMQP 2.4
- Spring Kafka 2.8
- Spring Security 5.6
- Spring Session 2021.1
Third Part Dependencies upgraded
-
Commons DBCP 2.9
-
Commons Pool 2.11
-
Hibernate 5.6
-
SnakeYAML 1.29
Spring Boot 2.6.0 Deprecations
AbstractDataSourceInitializer
has been decommissioned in favour ofDataSourceScriptDatabaseInitializer
. Subclasses ofAbstractDataSourceInitializer
have also been phased out in favour of newDataSourceScriptDatabaseInitializer
based alternatives.CamelCaseToUnderscoresNamingStrategy
in Hibernate 5.5 has taken the place ofSpringPhysicalNamingStrategy.
- In favour of new
RunnerConfiguration
based alternatives, three methods onAbstractApplicationContextRunner
have been deprecated. SpringApplicationRunListener's
begun and running methods have been replaced with versions that accept a Duration.ApplicationStartedEvent
andApplicationReadyEvent
constructors have been replaced with versions that accept a Duration parameter.- The
EnvironmentEndpoint.sanitize
method has been deprecated and is being phased out.