-
Notifications
You must be signed in to change notification settings - Fork 40.7k
Spring Boot 2.5.0 M1 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.
Following its removal from Spring Data in 2021.0.0, auto-configuration for Spring Data Solr has been removed in this release.
The EL implementation that is included in Spring Boot’s web and validation starters has changed. Tomcat’s implementation (org.apache.tomcat.embed.tomcat-embed-el
) is now used in place of the reference implementation from Glassfish (org.glassfish:jakrta.el
).
To streamline the customization of jOOQ’s DefaultConfiguration
, a bean that implements DefaultConfigurationCustomizer
can now be defined. This customiser callback should be used in favour of defining one or more *Provider
beans, the support for which has now been deprecated.
The default version of Groovy has been upgraded to 3.x. If you are using Groovy and also using Spock, you should also upgrade to the latest Groovy 3.0-compatible release of Spock 2.0. Alternatively, use the groovy.version
to downgrade back to Groovy 2.5.
Tip
|
Check the configuration changelog for a complete overview of the changes in configuration. |
The /info
actuator endpoint is no longer exposed over the web by default. Additionally, if Spring Security is on the classpath, the endpoint requires authenticated access by default.
The actuator’s startup
endpoint now supports GET
requests. Unlike a POST
request, a GET
request to the endpoint does not drain the event buffer and events will continue to be held in memory.
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:
-
Artemis 2.16
-
Cassandra Driver 4.10
-
Embedded Mongo 3.0
-
Flyway 7.5
-
Groovy 3.0
-
Hibernate Validator 6.2
-
Jackson 2.12
-
Jersey 2.33
-
Kafka 2.7
-
Liquibase 4.2
-
Mockito 3.7
-
Oracle Database 21.1
-
Solr 8.7
Apart from the changes listed above, there have also been lots of minor tweaks and improvements including:
-
management.endpoints.web.cors.allowed-origin-patterns
can now be used to configure the allowed origin patterns for Actuator endpoints (#24608) -
HttpSessionIdListener
beans are now automatically registered with the servlet context (#24879) -
Couchbase now uses the auto-configured
ObjectMapper
by default (#24616) -
Elasticsearch’s
Sniffer
is now auto-configured when itselasticsearch-rest-client-sniffer
module is on the classpath (#24174) -
spring.data.cassandra.controlconnection.timeout
can now be used to configure the timeout of Cassandra’s control connection (#24189) -
spring.kafka.listener.only-log-record-metadata
can now be used to configure what’s logged when retries are being attempted (#24582) -
Support for Apache Phoenix, auto-detecting
jdbc:phoenix
JDBC URLs (#24114) -
Configuration properties for Rabbit’s key store and trust store algorithms (#24076)