上QQ阅读APP看书,第一时间看更新
Baseline upgrades
The entire Spring Framework 5.0 has a JDK 8 and Jakarta EE 7 baseline. Basically, it means that to work on the Spring Framework 5.0, Java 8 is the minimum requirement.
Some of the important baseline Jakarta EE 7 specifications for the Spring Framework 5.0 are as follows:
- The code base of the Spring Framework 5.0 is based on Java 8 source code level now. So, the code readability is improved using inferred generics, lambdas, and so on. It also has the stability in the code for conditional support for Java 8 features.
- The Spring Framework requires at least Jakarta EE 7 API level to run any of the Spring Framework 5.0 applications. It requires Servlet 3.1, Bean Validation 1.1, JPA 2.1, and JMS 2.0.
- The development and deployment process is fully compatible with JDK 9 as follows:
- Compatible with classpath and module path, with stable automatic module names
- The Spring Framework's build and test suite also pass on JDK 9, and by default, it can be run on JDK 8