Skip to content

Spring Boot 3.1.0 RC2 Release Notes

Phillip Webb edited this page Nov 13, 2024 · 1 revision

Spring Boot 3.1.0-RC2 Release Notes

For changes in earlier milestones, please refer to:

Upgrading from Spring Boot 3.0

Minimum Requirements Changes

None.

New and Noteworthy

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

Service Connections

Supported Services

More services, with both Docker Compose and Testcontainers, are now supported. Please see the reference documentation for a complete list of services supported with Docker Compose and Testcontainers.

Testcontainers

A new Maven goal (spring-boot:test-run) and Gradle task (bootTestRun) have been introduced. They can be used to launch an application through a test main method when using Testcontainers at development time.

Classes declaring Testcontainers Container instances as static fields can be imported using a new @ImportTestcontainers annotation. Please refer to the reference documentation for further details.

Management of Testcontainers lifecycle has been improved, ensuring that containers are initialized first and destroyed last. Support for reusable containers has also been improved.

To contribute properties from Container @Bean methods, DynamicPropertyRegistry can now be injected. This works in a similar way to @DynamicPropertySource that you can use in tests. Please refer to the reference docs for further details.

SSL Configuration

Support for SSL configuration using SSL bundles has been added to Redis and Elasticsearch auto-configuration.

Miscellaneous

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

  • Dependency management for io.r2dbc:r2dbc-mssql has been reinstated

  • Logback’s root log level is now defaulted to INFO as early as possible

  • By default, Docker Compose is now stopped using stop rather than down

Deprecations in Spring Boot 3.1.0-RC2

None.

Clone this wiki locally