-
Notifications
You must be signed in to change notification settings - Fork 41.9k
Spring Boot 4.1.0 RC1 Release Notes
|
Tip
|
Check the configuration changelog for a complete overview of the changes in configuration. |
It is now possible to load the layers configuration that the Maven plugin should use to repackage the application.
Custom layers should be placed in META-INF/spring/layers/<name>.xml and added as a plugin’s dependency.
Review the documentation for more details.
Support has been added to read most of the OpenTelemetry environment variables (for example those, those, and those).
A complete list of all supported variables and their corresponding Spring Boot configuration property can be found in the documentation.
Added a new spring.datasource.connection-fetch property (eager, lazy).
When set to lazy, the auto-configured pooled DataSource is wrapped with LazyConnectionDataSourceProxy so a physical connection is taken from the pool only when a JDBC statement is actually needed.
Add auto-configure for Spring Data Redis’s @RedisListener endpoints.
If the application does not define a RedisMessageListenerContainer, a default container is registered so listener methods can be discovered and invoked without extra wiring.
See spring.data.redis.listener.* for a list of options.
Applications that need additional containers can use RedisMessageListenerContainerConfigurer to apply the same defaults as auto-configuration when building their own RedisMessageListenerContainer beans.
The spring-boot-starter-data-redis starter now also declares a dependency on spring-messaging, which is required by this feature.
Spring Boot 4.1.0-RC1 moves to new versions of several Spring projects:
-
…
Numerous third-party dependencies have been updated, some of the more noteworthy of which are the following:
Apart from the changes listed above, there have also been lots of minor tweaks and improvements including:
-
Application-wide HTML escaping configuration for webflux can be configured using
spring.webflux.default-html-escape. -
Console ANSI support is now enabled by default on Microsoft Windows 11 and later.
-
Add support for configuring
closeTimeoutandallowNonTransactionalonKafkaTemplate.