Repository navigation
Spring Boot 4.2.0 RC1 Release Notes
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.
|
Tip
|
Check the configuration changelog for a complete overview of the changes in configuration. |
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.
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.
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.
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:
Apart from the changes listed above, there have also been lots of minor tweaks and improvements including:
-
jarmode=tools extractno longer fails on executable wars with provided-scope libraries. -
Caffeine’s async cache mode can be enabled by setting
spring.cache.caffeine.cache-modetoasync. -
Random root passwords are now supported in MariaDB and MySQL Docker Compose integration.
-
RABBITMQ_DEFAULT_VHOSTis now supported in Docker Compose RabbitMQ integration. -
Tomcat’s
Servercan now be customized using aTomcatServerCustomizerthat’s defined as a bean or registered directly with the web server factory.