520 things this year is really much, we don’t care about entertainment, with DD together to see the release of Spring Boot 2.5.0! See what exciting new features and changes are coming!

The main updates

  1. Support of Java
  2. Support Gradle 7
  3. Support the Jetty 10
  4. Enhanced Docker image building
  5. Updated the Datasource initialization mechanism

In addition to the framework feature update, this release is also in keeping with The Times in terms of documentation, adding support for Dark mode!

It looks like this. Is that your favorite way to read?

Other updates

  • management.endpoints.web.cors.allowed-origin-patternsThe configuration can be used to control whether the Actuator endpoints are allowed to access across domains
  • HttpSessionIdListenerNow start registering automatically into the Servlet context
  • Couchbase now uses automated configuration by defaultObjectMapper
  • The ElasticsearchSnifferDepending on whether the classpath existselasticsearch-rest-client-snifferModule to automatically configure
  • spring.data.cassandra.controlconnection.timeoutYou can now configure connection timeout control for Cassandra
  • spring.kafka.listener.only-log-record-metadataIt can now be used to configure the metadata to be logged at retry time
  • Support Apache Phoenix, automatic detectionjdbc:phoenixSuch a JDBC link configuration
  • /actuatorThe discovery page is now available throughmanagement.endpoints.web.discovery.enabledConfigure to disable
  • /actuator/configpropsandactuator/envEndpoints are now availableadditional-keys-to-sanitizeTo configure keys that are not displayed
  • If you want to customize the ENDpoints of JMX, use itEndpointObjectNameFactory
  • Spring Security is automatically configured and bound when it is available on the classpathRSAPublicKeyandRSAPrivateKey
  • Of the RabbitMQConnectionFactoryNow you can go throughConnectionFactoryCustomizerTo implement customization
  • CloudPlatformAzure App Service can now be automatically detected
  • server.tomcat.keep-alive-timeoutCan be used to configure how long Tomcat waits for another request before closing the keep-alive connection.
  • server.tomcat.max-keep-alive-requestsCan be used to control the maximum number of requests that can be held until a keep-alive connection is closed.
  • spring.webflux.session.cookie.same-siteThe SameSite cookie policy used to configure WebFlux, which defaults to LAX
  • Apache HttpCient 5 is now the default automated configuration using WebClient

Dependent component version

Spring Boot 2.5 has updated the versions of various dependent components, as listed below:

  • Spring Data 2021.0
  • Spring bases for 1.3
  • Spring Integration 5.5
  • Spring Kafka 2.7
  • Spring Retry 1.3
  • Spring Security 5.5
  • The Spring Session 2021.0

Here is a list of versions of third-party dependencies:

  • Kotlin 1.5
  • Groovy 3.0
  • Flyway 7.7
  • Liquibase 4.2
  • Jackson 2.12
  • Kafka 2.7
  • Cassandra Driver 4.10
  • Embedded Mongo 3.0
  • Hibernate Validator 6.2
  • Jersey 2.33
  • Mockito 3.7
  • Directing a 4.2
  • JUnit 5.7 Jupiter
  • Elasticsearch 7.12

Deprecated content

The following is a list of deprecated content for Spring Boot 2.5.

  1. The original is located inorg.springframework.boot.actuate.endpoint.httpUnder the bagActuatorMediaTypeandApiVersionIt’s integrated and moved toorg.springframework.boot.actuate.endpointUnder the bag.

  1. The callback interfaces and configurations of some of the providers originally used to implement jOOQ are deprecated starting with this release. Back to use org. Springframework. Boot. Autoconfigure. Jooq. DefaultConfigurationCustomizer instead.

  2. The original is located in the org. Springframework. Boot. Autoconfigure. Data. The jpa package under EntityManagerFactoryDependsOnPostProcessor moves to org. Springframework. Bo Ot. Autoconfigure. Orm. Jpa package

More information about Spring Boot 2.5.0 can be found on the official page. Click through to this free tutorial that has been updated for years

Welcome to pay attention to my public account: program ape DD, share the outside can not see the dry goods and thinking!