Spring Boot 2.4.0 is officially GA, fully embracing cloud native

Spring Boot 2.4.0 is officially released , fully embracing cloud native


Spring Boot 2.4.0 officially released, is now available from the central warehouse maven, new definition version, the official version is no longer add RELEASEthe suffix statement.

  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-dependencies</artifactId>
    <version>2.4.0</version>
    <type>pom</type>
    <scope>import</scope>
  </dependency>

New version feature list

  • Java 15 is fully supported, and the minimum supported version is still Java 8

  • The new configuration file handling mechanism details can refer to: Spring Boot 2.4 configuration file to load big change mechanism

  • Support hierarchical JAR by default, reducing container image construction

  • Build JAR automatically optimize, automatically delete empty Starter

  • Support Docker / Buildpack mirrored building, is no longer required fabric8and other plug-ins.

  • @ConfigurationProperties injection configuration properties supported by @Namethe alias injection

  • The new attribute spring.config.importsupports attributes or Kubernetes configtree import a file or folder's properties

  • A new startup endpoint is added to display the startup program of the current application, which can help eliminate the time-consuming problem of bean initialization during the startup process

  • The embedded database check logic is improved. Only when H2 and Derby are based on memory storage, it is defined as an embedded database.

spring.datasource.initialization Initialization process.

  • New CRON timing task support   

  • LogBack configuration item changes

  • Fully embrace JUnit 5, remove JUnit 4 dependencies

  • Cancel the default Servlet registration mechanism, rely on DispatcherServle by default

  • HTTP request endpoint tracking no longer includes cookie request headers

  • Undertow request forwarding no longer retains the original URL

  • Neo4j graphical database supports major improvements and deletes a large number of attributes. Detailed reference

  • The lower version of ElasticSearch will not trigger Spring Boot automatic configuration to avoid startup errors.

  • The R2DBC module has been migrated to spring-r2dbc

  • Remove the Flatten Maven plugin

  • Remove version management exec-maven-plugin plugin

  • @SpringBootTest is not configuring the monitoring system, if you need to export, you can add @AutoConfigureMetrics annotation export

  • Redis cache indicator display, equivalent to redis info based on the application dimension

  • H2 built-in database supports configuration of management console account password

  • Support Apache Cassandra running health check

Core dependency upgrade

Spring Framework 5.3
Spring AMQP 2.3
Spring Batch 4.3
Spring Data 2020.0
Spring HATEOAS 1.2
Spring Integration 5.4
Spring Kafka 2.6
Spring Retry 1.3
Spring Security 5.4
Spring Session 2020.0

Guess you like

Origin www.oschina.net/news/120443/spring-boot-2-4-0-released