当前位置:网站首页>Sequence of entity layer, Dao layer, service layer and controller layer

Sequence of entity layer, Dao layer, service layer and controller layer

2022-07-07 23:27:00 Wild white rabbit

Add link description

Writing order :
1. Database table
2. Physical layer
3.DAO Layer write interface
4.Mapper Layer write sum DAO Mapping rules corresponding to layers , namely SQL and POJO Mapping rules . among <select> Element defined resultType Table pointing to entity layer ;
5.Service layer
6.ServiceImpl
7.Controller layer

Note:Service The layer should call both DAO Layer interface , receive DAO The data returned by the layer , But also provide an interface to Controller Layer to call .

原网站

版权声明
本文为[Wild white rabbit]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207072052357449.html