Why should we learn the advantages of the spring framework in the Java framework?
Why learning the Spring framework?
A: convenient decoupling and simplified development
Spring is a large factory that allows you to create all objects and maintain dependency between them.
B: Support for AOP Programming
Spring provides Aspect-Oriented Programming, allowing you to easily intercept permissions and monitor programs.
C: Support for declarative transactions
You only need to configure the transaction management, without manual programming.
D: convenient program testing
Spring supports Junit4 and can easily test Spring programs through annotations
E: Easy integration of various excellent frameworks
Spring does not exclude all kinds of excellent open-source frameworks. It provides direct support for various excellent frameworks (such as Struts2, Hibernate, MyBatis, and Quartz ).
F: reduces the difficulty of using Java EE APIs.
Spring provides encapsulation For APIs (JDBC, JavaMail, and remote calls) that are difficult to use during Java EE development, greatly reducing the difficulty of these Apis.