1

There are so many things in 520 this year. We don't care about the entertainment industry. Let's take a look at the release of Spring Boot 2.5.0 with DD! See what exciting new features and changes have been brought!

Major update

  1. Support Java 16
  2. Support Gradle 7
  3. Support Jetty 10
  4. Enhance the construction of Docker images
  5. Updated the initialization mechanism of Datasource

In addition to the framework function update, this version also conforms to the trend of the times in terms of documentation, adding support for the dark mode!

Long like this, is it your favorite reading mode?

Other updates

  • management.endpoints.web.cors.allowed-origin-patterns configuration can be used to control whether to allow cross-domain access to Actuator endpoints
  • HttpSessionIdListener is now automatically registered to the Servlet context
  • ObjectMapper with automated configuration by default
  • Elasticsearch's Sniffer will be automatically configured according to whether the elasticsearch-rest-client-sniffer
  • spring.data.cassandra.controlconnection.timeout can now be used to configure Cassandra connection timeout control
  • spring.kafka.listener.only-log-record-metadata can now be used to configure the metadata recorded during retry
  • Support Apache Phoenix, automatically detect JDBC link configuration such as jdbc:phoenix
  • /actuator found pages can now management.endpoints.web.discovery.enabled to disable configuration
  • /actuator/configprops and actuator/env endpoints can now use additional-keys-to-sanitize to configure keys that are not displayed
  • If you want to customize the JMX Actuator endpoint, you can use EndpointObjectNameFactory
  • When there is Spring Security under the classpath, it will automatically configure and bind RSAPublicKey and RSAPrivateKey
  • RabbitMQ's ConnectionFactory can now be customized ConnectionFactoryCustomizer
  • CloudPlatform can now automatically detect Azure App Service
  • server.tomcat.keep-alive-timeout can be used to configure how long Tomcat waits for another request before closing the keep-alive connection.
  • server.tomcat.max-keep-alive-requests can be used to control the maximum number of requests that can be kept before the connection in the keep-alive state is closed.
  • spring.webflux.session.cookie.same-site used to configure the SameSite cookie policy of WebFlux, the default is lax
  • Apache HttpCient 5 is now the default automation configuration using WebClient

Dependent component version

The versions of various dependent components have been updated in Spring Boot 2.5. The specific list is as follows:

  • Spring Data 2021.0
  • Spring HATEOAS 1.3
  • Spring Integration 5.5
  • Spring Kafka 2.7
  • Spring Retry 1.3
  • Spring Security 5.5
  • Spring Session 2021.0

The following is a list of versions of third-party dependent components:

  • 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
  • MongoDB 4.2
  • JUnit Jupiter 5.7
  • Elasticsearch 7.12

Deprecated content

The following is the deprecated content in Spring Boot 2.5. When you upgrade, you need to make adjustments!

  1. The original is located org.springframework.boot.actuate.endpoint.http the packet ActuatorMediaType and ApiVersion are integrated and moved to org.springframework.boot.actuate.endpoint lower cladding.

  1. The callback interface and configuration of some Providers originally used to implement jOOQ are deprecated from this version. Use org.springframework.boot.autoconfigure.jooq.DefaultConfigurationCustomizer later instead.
  2. The original is located org.springframework.boot.autoconfigure.data.jpa package under EntityManagerFactoryDependsOnPostProcessor moved to org.springframework.boot.autoconfigure.orm.jpa PACKAGE
For more information about the release of Spring Boot 2.5.0, refer to the official page , Are you learning Spring Boot? free tutorial that has been continuously updated for many years

Welcome to pay attention to my public account: Program Ape DD, share knowledge and thoughts that can’t be seen elsewhere


程序猿DD
2.2k 声望2.8k 粉丝

作品:《Spring Cloud微服务实战》、SpringForAll社区、OpenWrite、Youtube中文配音