Share good programmer java spring framework succinctly

1. What is Spring Framework? What are the main module Spring framework?

Spring is a framework providing for the comprehensive development of Java applications, broad-based support for the Java platform. Spring to help developers solve the problem of the development of fundamental, so that developers can focus on application development. Spring framework itself is also a well-built according to the design mode, which makes the integration of the Spring framework we can feel at ease in a development environment, do not worry about how Spring work in the background.

Spring Framework has been integrated in more than 20 modules. These modules are divided as shown in FIG main core container, data access / integration ,, Web, AOP (Aspect Oriented Programming), tools, modules and test message.

2, using the Spring framework which can bring benefits?

  Here are some of the major benefits of using the Spring Framework provides:

Dependency Injection (DI) method, and is configured so that dependence JavaBean properties files at a glance. Compared with the EJB container, IoC containers tend to be more lightweight. As a IoC container to develop and distribute applications it becomes very favorable in the case of limited memory and CPU resources.

Spring does not work behind closed doors, Spring advantage of existing technology such as ORM framework, logging framework, J2EE, Quartz and JDK Timer, as well as other view technology.

Spring Framework is organized in the form of modules. The number of packages and classes can be seen on the module to which it belongs, developers only need to use the module to their needs.

  To test an application using Spring development is very simple, because the test environment-related code have included in the framework. More simply, the use of POJO class JavaBean form, can easily use to write test data dependency injection.

Spring's Web MVC Web Framework is also a well-designed framework for developers to provide a strong addition to an option other than a mainstream framework such as Struts, over-designed, unpopular in the choice of web framework web framework.

Spring provides a convenient transaction management interface for small local transaction processing (for example, in an environment of a single DB) common and complex transaction processing (such as the use of complex DB environment JTA).


Guess you like

Origin blog.51cto.com/14249543/2400831