Skip to content

Spring Boot 4.2.0 RC1 Release Notes

Moritz Halbritter edited this page Oct 23, 2026 · 13 revisions

Spring Boot 4.2.0-RC1 Release Notes

For changes in earlier milestones, please refer to:

Upgrading from Spring Boot 4.1

Default Buildpacks Builder Changed to Ubuntu Resolute

The default builder used by the Maven and Gradle plugins to build OCI images is now paketobuildpacks/ubuntu-resolute-builder, replacing paketobuildpacks/builder-noble-java-tiny. Images are now based on Ubuntu 26.04 instead of 24.04.

When builder is not configured, the run image defaults to paketobuildpacks/ubuntu-resolute-run-tiny:latest, which, like before, does not include a shell. When builder is configured, the run image from the builder metadata is used, which is paketobuildpacks/ubuntu-resolute-run:latest and includes a shell.

The run image is no longer pinned to a specific version by the builder. If you need reproducible images, set both builder and runImage to specific versions.

To keep using the previous builder, set builder to paketobuildpacks/builder-noble-java-tiny.

New and Noteworthy

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

Run Image Compatibility Check Uses OS Distribution

The Maven and Gradle plugins no longer compare the deprecated stack IDs of the builder and run image. Instead, they compare the OS distribution taken from the io.buildpacks.base.distro. labels, falling back to the io.buildpacks.stack.distro. labels. A warning is logged if the name or version differs, for example when using a paketobuildpacks/ubuntu-noble-run run image with the default resolute builder.

Properties Migrator Fail Support

The spring-boot-properties-migrator now includes a property that can be set to fail the application on errors or warnings. See the updated documentation for details.

Startup Performance Improvements

Classes and resources are now looked up directly in the nested jars of an executable jar, instead of opening a URL connection for every nested jar on every lookup. This reduces startup time and the memory allocated during startup. Reading deflated nested jar entries and resolving cached resources has also been optimized.

Sorting of auto-configuration classes and DevTools restarts are now faster as well.

Dependency Upgrades

Spring Boot 4.2.0-RC1 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:

  • jarmode=tools extract no longer fails on executable wars with provided-scope libraries.

  • Caffeine’s async cache mode can be enabled by setting spring.cache.caffeine.cache-mode to async.

  • Random root passwords are now supported in MariaDB and MySQL Docker Compose integration.

  • RABBITMQ_DEFAULT_VHOST is now supported in Docker Compose RabbitMQ integration.

  • Tomcat’s Server can now be customized using a TomcatServerCustomizer that’s defined as a bean or registered directly with the web server factory.

Deprecations in Spring Boot 4.2.0-RC1

  • None.

Clone this wiki locally