Home > Back-end >  The frame of the SSM spring, for springMVC, mybatis what role respectively?
The frame of the SSM spring, for springMVC, mybatis what role respectively?

Time:03-20

SSM in the Java web development framework for spring, for springMVC, mybatis what role respectively?

CodePudding user response:

Spring MVC controller, similar to the Struts, receives the external request, parse parameter passed to the service layer
The Spring container belongs to the coordination context, management object dependencies between, providing transaction mechanism
Mybatis belongs to orm persistence layer framework, business entities and data table

CodePudding user response:

Spring MVC control layer, want to be with the role of the Struts
Spring inversion of control and dependency injection to create objects to a container management, achieve the effect of decoupling
Mybatis is mainly used to operate database (database to add and delete)

CodePudding user response:

Upstairs said all right

CodePudding user response:

Good, use is very convenient,

CodePudding user response:

Say very reasonable

CodePudding user response:

The income of upstairs.

CodePudding user response:

Upstairs said is very good
  • Related