[Baidu know] ssm respective advantages and ssh

https://zhidao.baidu.com/question/875108451824176892.html

 

Different main achievement in MVC SSM and SSH ways, and different aspects of ORM persistence (Hiibernate and Mybatis).

SSM advantages:

SSM more lightweight configuration, the notes to maximize the development and ORM achieve a more flexible, SQL optimization easier.

SSH advantages:

SSH configuration and more emphasis on the development, which Hiibernate complete package for JDBC is more object-oriented, for CRUD data maintenance more automated, but SQL optimization is weak, and the entry threshold is slightly higher.

SSH usually refers to Struts2 to make the controller (controller), the component layers of management spring, hibernate responsible for the persistence layer.

SSM is the means to do SpringMVC controller (controller), the component layers of management Spring, MyBatis responsible for the persistence layer.

Common:

1, Spring dependency injection DI managing components of each layer.

2, with Aspect Oriented Programming AOP manage things, logs, and other privileges.

difference:

1, Struts2 and SpringMVC controller (Controller) controlling the different mechanisms of interaction model and the view,

2, Struts2 Action class is level, the level SPRINGMVC method, easier to implement RESTful style.

Extended Information

SSM and SSH current popular two companies to develop open-source MVC framework.

The MVC, i.e., model (model) - view (view) - Abbreviation controller (Controller), and a software design model, with a service logic, data, organization code interface display method of separating the business logic to gather a member inside.

Improving and customization interface and user interaction at the same time, without rewriting the business logic. Framework is so popular, that it is easy to reuse and simplify development, the essence of the idea, to master the core idea, to master other similar framework there will not be a problem.

Guess you like

Origin www.cnblogs.com/jinanxiaolaohu/p/11044957.html