Spring Boot 3.0 is officially released! A super important release! !

First published on JavaGuide ("Java Learning + Interview Guide" covers the core knowledge that most Java programmers need to master. To prepare for Java interviews, JavaGuide is the first choice!)

Following the official release of Spring Framework 6.0 , just yesterday, Spring Boot 3.0 was also officially released!

This is a very, very important version, which means that a new journey has begun!

Thanks again to everyone who has contributed to Spring and Spring Boot over the years! Supporting Jakarta EE 9 and 10, observability enhancements, and GraalVM support was a difficult task, and thanks to the collective efforts of the team, no aspect of the Spring portfolio was affected. Special thanks to the developers of other projects in the Spring portfolio, without whom this release would not be possible.

Spring Boot 3.0 includes 5,700+ commits from 151 individuals over the past 12 months.

This is the first major revision of Spring Boot since the 2.0 release 4.5 years ago. This is also the first Spring Boot GA release to support Spring Framework 6.0 and GraalVM.

Since this is a major release of Spring Boot, upgrading existing applications might be a little more complicated than usual. Officially compiled a special migration guide (migration guide address: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide) to help upgrade existing Spring Boot 2.7 applications. If you are currently running an earlier version of Spring Boot, it is recommended to upgrade to Spring Boot 2.7 before migrating to Spring Boot 3.0.

Highlights of the new release include:

  • Minimum Java 17 and Java 19 support : Spring Boot 3.0 requires Java 17 as a minimum version. If you are currently using Java 8 or Java 11, you will need to upgrade your JDK before you can develop Spring Boot 3.0 applications. Spring Boot 3.0 works well and has been tested with JDK 19.
  • Support for generating native images with GraalVM, replacing the experimental Spring Native project : Spring Boot 3.0 applications can now be converted to GraalVM native images, which can provide significant memory and startup performance improvements. Support for GraalVM Native Images is a major engineering effort across the Spring portfolio. To get started with GraalVM native images, see the updated Spring Boot reference documentation.
  • Improved Observability with Micrometer and Micrometer Tracing : Spring Boot 3.0 supports the new observation APIs introduced in Micrometer 1.10. A new ObservationRegistryinterface is available for creating observations, which provide a single API for metrics and tracking. Spring Boot now auto-configures the instance for you ObservationRegistry. And, Spring Boot now auto-configures Micrometer Tracing for you. This includes support for Brave, opentelemeter, Zipkin, and Wavefront.
  • Support for Jakarta EE 10 with EE 9 baseline : Spring Boot 3.0 has migrated from Java EE to Jakarta EE apis for all dependencies.

You can find a comprehensive and detailed introduction to new features/new improvements for version 3.0 in Spring Boot's official wiki at https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes.

You can now create Spring Boot 3.0 based projects on start.spring.io . Go and experience a wave! !

Guess you like

Origin blog.csdn.net/qq_34337272/article/details/128042492