Spring Framework Conceptual Benefits

What are the features and benefits of spring framework?

1, ioc, realize the low coupling of javabean, easy to reuse javacode;

2, aop easy to use;

3, the realization of restful mvc, easy web development;

4, a large number of annotations pojo, simplify the xml configuration;

5, database template classes , compatible with a variety of databases , and the bottom only need to replace the jdbcdriver, datasource declared a good driver , jdbctemplate can access the database ;

6, spring official website has a lot of solutions can be used (security, data access, page flow , android)

In short, spring has a lot of annotations pojo, simplifying xml configuration ;

5. p>

In short, spring is a good realization of the system’s low coupling and high aggregation, easy to reuse the code, and interface-oriented programming allows access to the api without having to know the underlying implementation (such as jdbctemplate, it does not know what type of access to the database, just the configuration of the differences so that later you want to change from mysql to oracle only need to change the driver is good, the code does not have to change)

spring’s usefulness advantages

1, the use of Spring’s IOC container, the dependencies between the object to Spring, reduce the coupling between components, so that we focus more on application logic;

2, you can provide a multitude of services, transaction management, WS, etc.;

3, AOP’s good support for the convenience of the face to the faceted Programming;

4, the mainstream framework provides good integration support , such as Hibernate, Struts2, JPA and so on.

5, SpringDI mechanism reduces the complexity of the replacement of business objects ;

6, Spring belongs to the low-invasive , code pollution is extremely low ;

7, Spring’s highly open-ended , not mandatory dependence on Spring, developers are free to choose part or all of Spring .

spring framework which features and benefits

One of the benefits of using the Spring Framework

Lightweight : Spring is lightweight , the basic version is about 2MB.

Control inversion : Spring achieves loose coupling through control inversion , objects give their dependencies , rather than creating or looking up dependencies on the objects .

Attached Oriented Programming (AOP): Spring supports Attached Oriented Programming and separates application business logic from system services.

Containers: Spring contains and manages the lifecycle and configuration of objects in an application.

MVC Framework: Spring’s WEB framework is a well-designed framework and is a good alternative to the Web framework.

Transaction management : Spring provides a continuous transaction management interface that can be extended to local transactions down to the global transaction (JTA).

Exception handling : Spring provides a convenient API to the specific technology-related exceptions ( such as thrown by JDBC, HibernateorJDO ) into a consistent unchecked exception .

Two, Spring consists of what modules?

The following are the basic modules of the Spring Framework:












Web-Strutsmole< /p>