-
Notifications
You must be signed in to change notification settings - Fork 40.7k
Spring Boot 2.5.0 M2 Release Notes
Classes, methods and properties that were deprecated in Spring Boot 2.3 have been removed in this release. Please ensure that you aren’t calling deprecated methods before upgrading.
Spring Boot no longer provides default values for spring.data.cassandra.request.throttler
properties.
If you rely on max-queue-size
, max-concurrent-requests
, max-requests-per-second
or drain-interval
you should set values that make sense for your application.
The messsage
attribute in the default error view is now removed rather than blanked when it is not shown.
If you parse the error response JSON, you may need to deal with the missing item.
You can still use the server.error.include-message
property if you want messages to be included.
The underlying method used to support schema.sql
and data.sql
scripts has been redesigned in Spring Boot 2.5.
For most users, the changes will be transparent, but if you do find any issues please report them via https://github.com/spring-project/spring-boot/issues.
If you use both JPA initialization and Spring Boot’s SQL script support in the same application you may find an ordering issue with Spring Boot 2.5.
By default, we now run the schema.sql
and data.sql
scripts before JPA initialization occurs.
If you’d rather run the scripts after JPA initialization you can set the spring.datasource.initialization-order
property to after-jpa
.
Tip
|
Check the configuration changelog for a complete overview of the changes in configuration. |
The Maven and Gradle plugins both now support the use of custom Buildpacks.
You can set the buildpacks
property to point at directories, tar.gz files, specific builder references or Docker images.
Spring Boot 2.5 can now use Jetty 10 as an embedded web server. Since Jetty 10 requires Java 11, our default Jetty version will remain as 9.
To upgrade to Jetty 10, declare a dependency directly or use the jetty.version
property in your pom.xml.
If you define a custom DataSource for use with Liquibase we now configure it using a SimpleDriverDataSource
.
We previously used a pooling datasource which was unnecessary and inefficient for database initialization.
The Spring Boot Gradle plugin supports and has been tested against Gradle 7.0-M1. We plan to fully support Gradle 7 when it is released.
Spring Boot 2.5 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:
-
MongoDB 4.2.0-beta1
-
Lettuce 6.1.0.M1
-
JUnit Jupiter 5.7.1