4

On January 20, 2022, Spring officially released the first milestone version M1 of Spring Boot 3.0.0.

Let's take a look at the major changes in Spring Boot 3.0.0 M1 version:

Java baseline raised from Java 8 to Java 17

This was already known in the earliest Spring Boot 3 related announcements, and Java 17 will become the mainstream version in the future. So the question is, has everyone put the upgrade of Java 17 on the agenda? If you don't know much about the various versions after Java 8, has a 4.6 W word summary here, maybe you can read .

From Java EE APIs to Jakarta EE

Starting with Spring Boot 3, all Java EE APIs need to be migrated to Jakarta EE. When most users need to modify the import-related API, they should replace javax with jakarta. For example, javax.servlet.Filter was originally introduced needs to be replaced with jakarta.servlet.Filter . But there are still some third-party libraries that rely on the Java EE API, which are not yet well supported, so the support for such components will be temporarily removed in Spring Boot 3 (for example: EhCache 3 , Infinispan , Jolokia , Pooled JMS etc.) . Therefore, compared with the 2.x version, the current M1 version will have some missing features. Of course, most of them should only be temporary, and Spring Boot officials will wait for these third-party libraries to release Jakarta-compatible libraries before reintroducing them.

This support has been removed

The support for the following features has been removed. Compared to the previous SNAPSHOT version, Hazelcast 3

  • Apache ActiveMQ
  • Atomikos
  • EhCache 2
  • Hazelcast 3

By the way, if you are learning Spring Boot, I would like to recommend my original Spring Boot free tutorial . The serialization has been updated for many years. From 1.x to 2.x, 3.x will continue to be closer in the future, hurry up and add it to the collection Eat ashes!

Dependency upgrade

Dependency versions of the relevant Spring projects:

  • Micrometer 2.0.0-M1
  • Spring AMQP 3.0.0-M1
  • Spring Batch 5.0.0-M1
  • Spring Data 2022.0.0-M1
  • Spring Framework 6.0.0-M2
  • Spring Integration 6.0.0-M1
  • Spring HATEOAS 2.0.0-M1
  • Spring Kafka 3.0.0-M1
  • Spring LDAP 3.0.0-M1
  • Spring REST Docs 3.0.0-M1
  • Spring Security 6.0.0-M1
  • Spring Session 2022.0.0-M1
  • Spring Web Services 4.0.0-M1

Dependency versions of third-party libraries:

  • Artemis 2.20.0
  • Hazelcast 5.0
  • Hibernate Validator 7.0
  • Jakarta Activation 2.0
  • Jakarta Annotation 2.0
  • Jakarta JMS 3.0
  • Jakarta JSON 2.0
  • Jakarta JSON Bind 3.0
  • Jakarta Mail 2.0
  • Jakarta Persistence 3.0
  • Jakarta Servlet 5.0
  • Jakarta Servlet JSP JSTL 2.0
  • Jakarta Transaction 2.0
  • Jakarta Validation 3.0
  • Jakarta WebSocket 2.0
  • Jakarta WS RS 3.0
  • Jakarta XML Bind 3.0
  • Jakarta XML Soap 2.0
  • Jetty 11
  • jOOQ 3.16
  • Tomcat 10

Future plan

The follow-up Spring Boot team will release a new milestone version every two months, so the M2 version is expected to be released on March 24, and the GA version will meet you in late November.

If you want to know more about the development of Spring Boot for the first time, remember to follow me. Share cutting-edge technologies and accumulate overtaking capital, starting from paying attention to DD. In addition, we have created a high-quality technical exchange group, together with good people, good will own up, and quickly click the plus group , enjoy grown up with happiness.

References

Welcome to my public account: Programmer DD. Learn about cutting-edge industry news for the first time, share in-depth technical dry goods, and obtain high-quality learning resources

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

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