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
- Support Java 16
- Support Gradle 7
- Support Jetty 10
- Enhance the construction of Docker images
- 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 endpointsHttpSessionIdListener
is now automatically registered to the Servlet contextObjectMapper
with automated configuration by default- Elasticsearch's
Sniffer
will be automatically configured according to whether theelasticsearch-rest-client-sniffer
spring.data.cassandra.controlconnection.timeout
can now be used to configure Cassandra connection timeout controlspring.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 nowmanagement.endpoints.web.discovery.enabled
to disable configuration/actuator/configprops
andactuator/env
endpoints can now useadditional-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
andRSAPrivateKey
- RabbitMQ's
ConnectionFactory
can now be customizedConnectionFactoryCustomizer
CloudPlatform
can now automatically detect Azure App Serviceserver.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!
- The original is located
org.springframework.boot.actuate.endpoint.http
the packetActuatorMediaType
andApiVersion
are integrated and moved toorg.springframework.boot.actuate.endpoint
lower cladding.
- 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. - The original is located
org.springframework.boot.autoconfigure.data.jpa
package underEntityManagerFactoryDependsOnPostProcessor
moved toorg.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 yearsWelcome to pay attention to my public account: Program Ape DD, share knowledge and thoughts that can’t be seen elsewhere
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。