当前位置:网站首页>Entity层、DAO层、Service层、Controller层 先后顺序
Entity层、DAO层、Service层、Controller层 先后顺序
2022-07-07 21:52:00 【狂野小白兔】
写法顺序:
1.数据库表
2.实体层
3.DAO层写接口
4.Mapper层写和DAO层对应的映射规则,即SQL和POJO的映射规则。其中<select>元素定义的resultType指向实体层的表;
5.Service层
6.ServiceImpl
7.Controller层
Note:Service层应该既调用DAO层的接口,接收DAO层返回的数据,又要提供接口给Controller层的类来进行调用。
边栏推荐
猜你喜欢
Solve the problem of duplicate request resource paths /o2o/shopadmin/o2o/shopadmin/getproductbyid
Mysql索引优化实战二
Unity3D学习笔记6——GPU实例化(1)
Wechat forum exchange applet system graduation design completion (6) opening defense ppt
Description of longitude and latitude PLT file format
微信论坛交流小程序系统毕业设计毕设(8)毕业设计论文模板
高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
LeeCode -- 6. Z 字形变换
【编译原理】词法分析设计实现
Installing spss25
随机推荐
FPGA基础篇目录
网络安全-sqlmap与DVWA爆破
Vs extension tool notes
Ros2 topic (03): the difference between ros1 and ros2 [01]
Inftnews | the wide application of NFT technology and its existing problems
Network security -beef
Gee (III): calculate the correlation coefficient between two bands and the corresponding p value
ArcGIS: two methods of attribute fusion of the same field of vector elements
Wechat forum exchange applet system graduation design (2) applet function
二叉树(Binary Tree)
Archlinux install MySQL
Description of longitude and latitude PLT file format
ArcGIS:矢量要素相同字段属性融合的两种方法
USB(十六)2022-04-28
php 使用阿里云存储
Freelink open source call center design idea
Redhat下安装fedora
Network security -burpsuit
UE4_UE5全景相机
网络安全-CSRF