Home > Back-end >  Summary of the spring
Summary of the spring

Time:10-12

1. What is spring?
Spring is a layered Java SE/EE application full - stack lightweight open source framework, with the IoC (Inverse Of Control: inversion Of Control) and AOP (Aspect Oriented Programming: Aspect Oriented Programming) as the kernel, provides the show Spring MVC and persistent layer Spring JDBC transaction management, and business layer many enterprise applications such as technology, can integrate the open source world famous third-party frameworks and libraries, gradually become the most used Java EE enterprise application open source framework,
2. The advantage of the spring
Convenient decoupling, simplify development by the Spring IoC container, the dependent relationships between objects can be controlled by the Spring, avoid hard-coding built into the excessive application of coupling, users don't have to singleton class, attribute file parsing etc. These are the underlying demand write code, but with more focus on the upper application,
AOP programming support
By Spring AOP functionality, convenient to carry on the aspect oriented programming, many not easy to use traditional OOP can realize the function of the
Through the AOP easily cope with,
Declarative transaction support
We can be free from monotonous boredom transaction management code, through the flexible declarative transaction management, improve the development efficiency and quality,
Convenient program test
Can use the container to rely on almost all of the testing work in the form of programming test is no longer expensive operation, but things can be done conveniently,
Convenient to integrate various excellent framework
Spring can decrease the difficulty of the use of various framework provides for a variety of excellent framework (Struts, Hibernate, Hessian, Quartz, etc.), direct support,
Reduce degree of difficulty of using JavaEE API
Spring of JavaEE API (such as JDBC, JavaMail, remote call, etc.) for the thin layer encapsulation, make the use of these API difficulty greatly reduced,
Java source code is a classical learning paradigms
Spring the source code for the design, the structure is clear, use alone, everywhere embodies the masters for Java design patterns used in flexibility and profound attainments of Java technology, its source code has no intention of Java technology is an example of best practice

CodePudding user response:

  • Related