The relationship between the layers SpringBoot

The relationship between the layers SpringBoot

SpringBoot divided into four layers: Controller level, service level, dao layer, entity layer.

 

 layer entity : model layer and the like is stored in the entity class, the property value is consistent with the value of the database, to achieve setter and getter methods.

https://blog.csdn.net/qq_37433657/article/details/83275051

 

dao layers : layer mapper i.e., the database operation persistence, so that his method for the operation of the database, use is substantially CRUD, interfaces he is, only the method name, embodied in mapper.xml achieved.

 

the service layer : the business layer, storing service logic processing operation is not directly on the database, an interface and the interface implementation class, there is provided a method call controller layer.

 

the controller layer : the control layer, the service layer introduced, call your service methods, business operations by receiving controller distal came and returns a path or developed in the data table.

 

Guess you like

Origin www.cnblogs.com/wjw1014/p/11358439.html