Wu Yuxiong - a natural framework for the development of natural JAVA SPRING study notes: Java Spring Features and Benefits

Spring is another mainstream Java Web development framework is a lightweight application framework with high cohesion and attractiveness.
Spring is layered SE the Java / EE Full- Stack lightweight open source framework IoC (Inverse of Control, inversion control) and AOP (Aspect Oriented Programming, Aspect Oriented Programming) as a core, prior to the completion using only basic JavaBean may be completed by the EJB work, replace the EJB bloated and inefficient development model.
In the actual development, usually three-tier server architecture, namely the presentation layer (web), business logic layer (service), persistence (dao).
Spring for each layer provides technical support, integration with Struts2 framework of the presentation layer, business logic layer and can manage the transaction log, etc., can be integrated in the Hibernate persistence layer and JdbcTemplate technology.
From the design perspective, Spring framework for Java programmers to give a higher degree of freedom, for the industry FAQ also provides a good solution, therefore, in the open source community has been widely welcomed, and is most of the company as a Java the preferred framework for project development.
Spring has a simple, loosely coupled and testable features, not only for server-side development, can be applied to develop any Java application. The main advantage of the Spring Framework follows.
1 ) facilitate decoupling, simplify development
Spring maintenance is a large factory, you can create all the objects and dependencies to the Spring management.
2 ) facilitate the integration of various excellent framework
Spring does not exclude a variety of excellent open source framework, its interior provides direct support for a variety of excellent frameworks (such as Struts2, Hibernate, MyBatis, etc.).
3 ) the difficulty of reducing the use of Java EE API
Spring for some API Java EE development is very difficult to use (JDBC, JavaMail, remote calls, etc.) offer a package, the difficulty of these API applications is greatly reduced.
4 test) to facilitate procedures
Spring support JUnit4, you can easily test the program by Spring comment.
5 ) AOP programming support
Spring provides aspect-oriented programming, you can easily implement a program permission to intercept and operational monitoring.
6 ) Support declarative transactions
Only you need to complete the configuration management of affairs without manual programming.

 

Guess you like

Origin www.cnblogs.com/tszr/p/12128685.html