Joke Collection Website - Blessing messages - What is ssm framework?

What is ssm framework?

SSM framework is the integration of Spring MVC, Spring and Mybatis framework, and it is a standard MVC pattern. The whole system is divided into four layers: view layer, controller layer, service layer and DAO layer. Spring MVC is used to forward requests and manage views, Spring implements business object management, and Mybatis is used as the persistence engine of data objects. ?

Relationship between layers of SSM framework

DAO layer and service layer can be developed independently, and the coupling between them is very low, so they can be developed independently. This model is especially beneficial in the process of developing large-scale projects.

The controller layer and the view layer should be developed together because they are highly coupled, but they can also be developed independently of the first two layers as a whole. In this way, you only need to know the definition of the interface before the layer and layer, and you can complete the required logical unit application by calling the interface, which makes everything very clear and simple.