:reference-docs: https://docs.spring.io/spring-boot/docs/3.1.0-SNAPSHOT/reference/html/

= Spring Boot 3.1.0-RC2 Release Notes

For changes in earlier milestones, please refer to:

- link:Spring-Boot-3.1.0-M1-Release-Notes[v3.1.0-M1]
- link:Spring-Boot-3.1.0-M2-Release-Notes[v3.1.0-M2]
- link:Spring-Boot-3.1.0-RC1-Release-Notes[v3.1.0-RC1]



== Upgrading from Spring Boot 3.0



=== Minimum Requirements Changes
None.



== New and Noteworthy
TIP: Check link:Spring-Boot-3.1.0-RC2-Configuration-Changelog[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 {reference-docs}/features.html#features.docker-compose.service-connections[Docker Compose] and {reference-docs}/features.html#features.testing.testcontainers.service-connections[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 {reference-docs}/features.html#features.testing.testcontainers.at-development-time[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-docs}/features.html#features.testing.testcontainers.at-development-time.importing-container-declarations[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}/features.html#features.testing.testcontainers.at-development-time.dynamic-properties[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.
