Advantages and disadvantages of Spring

1. Reduce the coupling between components, and realize the decoupling between software layers.

2. You can use many services provided by the container, such as transaction management, message service, etc.

3. The container provides singleton mode support.

4. The container provides AOP technology, which can be used to easily implement some interception, such as permission interception and runtime monitoring.

5. The container provides numerous auxiliary classes, which can speed up the application development.

6. Spring provides good support for mainstream application frameworks, such as mybatis.

7. Spring is a low-invasive design.

8. Independent of various application servers.

9. Spring's DI mechanism reduces the complexity of business object replacement.

10. The high degree of openness of spring does not force applications to completely depend on it. Developers are free to choose some or all of spring.

The disadvantages of spring:

A large number of reflection mechanisms are used, and the reflection mechanism is very memory intensive.

Guess you like

Origin www.cnblogs.com/weigy/p/12727456.html