Skip to content

Spring Boot 4.0.0 M1 Release Notes

Andy Wilkinson edited this page Jul 24, 2025 · 18 revisions

Spring Boot 4.0.0-M1 Release Notes

Upgrading from Spring Boot 3.5

Migration Guide

To help with upgrading, a migration guide is available.

Minimum Requirements Changes

  • Spring Framework 7

  • Kotlin 2.2

New and Noteworthy

Tip
Check the configuration changelog for a complete overview of the changes in configuration.

Milestones Available from Maven Central

Starting with 4.0.0-M1, Spring Boot milestones (and release candidates) are now published to Maven Central in addition to https://repo.spring.io.

Configuration Properties Metadata for External Types

It is now possible for @ConfigurationProperties-annotated types to refer to types that are located in a different module. To source the metadata from those modules, you should add the annotation processor (if necessary) and flag the type with @ConfigurationPropertiesSource.

See the reference documentation for more details.

SSL Info

Support for the certificate validity threshold has been removed from the SSL info contribution. A certificate that had a status of WILL_EXPIRE_SOON will now appear as VALID. The information about the start and end of a certificate’s validity remains.

SSL Health

Certificate chains that contain one or more certificates that will expire within the configured threshold (management.health.ssl.certificate-validity-warning-threshold) are now listed in a new expiringChains entry in the details of the health response. The status WILL_EXPIRE_SOON is no longer used and expiring certificates will have a status of VALID.

Task Decoration

The auto-configurations for task scheduling and task execution now support multiple TaskDecorator beans. When the context contains multiple TaskDecorator beans, a CompositeTaskDecorator that delegates to them is created. The individual decorators are called in the ordered defined by @Order and Ordered.

JmsClient

The auto-configuration for JMS now includes support for the new JmsClient API. The support for JmsTemplate and JmsMessagingTemplate is left unchanged.

Dependency Upgrades

Spring Boot 4.0.0-M1 moves to new versions of several Spring projects:

Numerous third-party dependencies have also been updated, some of the more noteworthy of which are the following:

Miscellaneous

Apart from the changes listed above, there have also been lots of minor tweaks and improvements including:

  • The auto-configuration for Micrometer’s metrics aspects now enables support for @MeterTag on @Counted and @Timed methods with a SpEL-based ValueExpressionResolver.

  • @ServiceConnection support for MongoDB now supports Testcontainers' MongoDBAtlasLocalContainer

  • Improved error message when configuration property binding fails due to a class not found error

  • Names of several reactive auto-configuration classes have been updated for consistency

Deprecations in Spring Boot 4.0.0-M1

  • OperationMethod(Method method, OperationType operationType) in favor of OperationMethod(Method method, OperationType operationType, Predicate<Parameter> optionalParameters)

Clone this wiki locally