-
Notifications
You must be signed in to change notification settings - Fork 40.7k
Spring Boot 2.2.0 M5 Release Notes
See instructions in the 2.2.0.M1 release notes for upgrading from Spring Boot 2.1.
The filter that handles the _method
request parameter is now disabled by default as it causes early consumption of a request body if the body may contain parameters. This can be restored by setting either spring.webflux.hiddenmethod.filter.enabled
or spring.mvc.hiddenmethod.filter.enabled
to true
.
Tip
|
Check the configuration changelog for a complete overview of the changes in configuration. |
The threaddump
actuator endpoint can now return a thread dump in plain text that is compatible with both Thread Dump Analyzer and https://fastthread.io.
Input parameters of an Actuator @Endpoint
can be managed using custom @EndpointConverter
-annotated converters.
The RedisCacheManager
configuration has been improved recently and a RedisCacheManagerBuilderCustomizer
bean allows you to get a handle to the builder before it is used to configure an immutable RedisCacheManager
.
In an environment with multiple data sources, A DataSource
bean can be qualified with @BatchDataSource
to indicate it is the one to be used by Spring Batch.
The build info goal has an extra time
property that allows to configure how build.time
is handled. It can be disabled completely or set to a fixed time to make the output of build.properties
repeatable.
It is now possible to track the total size of a connection pool by tracking the size
and idle
metrics. If you have a custom DataSourcePoolMetadata
implementation, consider implementing the getIdle
method.
Spring Boot 2.2.0.M5 moves to new versions of several Spring projects:
-
Spring Framework 5.2.0.RC1
-
Reactor Dysprosium-M3
-
Spring AMQP 2.2.0.M4
-
Spring Data Moore-RC2
-
Spring Integration 5.2.0.M4
-
Spring Kafka 2.3.0.M4
-
Spring Security 5.2.0.M4
-
Spring Session Corn-M3
Numerous third-party dependencies have also been updated, some of the more noteworthy of which are the following:
-
Jersey 2.29 as well as
jetty-spring5
support -
Jedis 3.1
In addition to the changes listed above, there have also been lots of minor tweaks and improvements including:
-
The application will fail fast if
spring.config.location
specifies a file with an extension that noPropertySourceLoader
can read. -
The layout to use to repackage the application can be set on the command line with Maven using the
spring-boot.repackage.layout
property. -
RestTemplateBuilder#defaultHeader
accepts more than one value. -
Custom resource handlers can serve a
favicon
. -
Kafka’s
RecordInterceptor
is detected and associated to the auto-configured listener container. -
YAML configuration can now use
on
oroff
for boolean types. -
Actuator discovery page is now available on
/
when using a separate management port. -
@WebMvcTest
now scansHandlerInterceptor
beans. -
@WebFluxTest
scansWebFilter
beans.