当前位置:网站首页>Three-tier architecture service, dao, controller layer
Three-tier architecture service, dao, controller layer
2022-07-31 11:07:00 【m0_67402125】
**My understanding:** asked the pig, the following is the logic of a two-way binding
The controller layer receives the front-end input information and gives a response (whether the front-end and back-end are connected), and then the controller layer passes the information parameters to the service for processing;
Service encapsulates some services and can call the api of the dao layer. The service layer also has many interfaces and implementation classes, and the implementation class calling methods can operate the dao layer;
The dao layer can add, delete, modify, and query a single table or multiple tables.
The dao layer also returns the results of the addition and modification checks to the service layer
The service layer then passes the result to the controller layer
The controller layer then passes the information to the front end
This last cycle is a two-way binding.
But for some businesses, there is no need to implement two-way binding:
For example, if a delete operation is sent from the front end, there is no need to send back the data, just delete it directly.
Some big guys explain these layers 1[Here is picture 001]https://blog.csdn.net/weixin_44471490/article/details/121462038Some big guys explain these layers 2 [here is picture 002]https://blog.csdn.net/qq_22771739/article/details/82344336
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
- Inversion problem - key point
- Windows系统Mysql8版本的安装教程
- 蓝牙协议栈开发板 STM32F1 跑蓝牙协议栈 –传统蓝牙搜索演示以及实现原理[通俗易懂]
- “带薪划水”偷刷阿里老哥的面经宝典,三次挑战字节,终成正果
- 7 days to learn Go, Go structure + Go range to learn
- Make your own dataset in FCN and train it
- lotus-local-net 2k v1.17.0-rc4
- 线程池 ThreadPoolExecutor 详解
- Deletion of the sequence table
- 淀粉与纤维素
猜你喜欢
【软件工程之美 - 专栏笔记】33 | 测试工具:为什么不应该通过QQ/微信/邮件报Bug?
KVM virtualization job
ASP.NET 身份认证框架 Identity(一)
In half a month, MySQL has been consolidated again, and a tens of thousands of words "super hard core" article has been sorted out!
矩形脉冲波形的占空比及脉冲和瞬态特征的测量
分布式事务——分布式事务简介、分布式事务框架 Seata(AT模式、Tcc模式、Tcc Vs AT)、分布式事务—MQ
SQL学习笔记——REGEXP运算符
IBM SPSS Statistics 28软件安装包下载及安装教程
透过开发抽奖小程序,体会创新与迭代
[ 图 论 ]二分图判定及其匹配(基础+提高)
随机推荐
结构化查询语言SQL-关系数据库标准语言
Redis缓存面临的缓存击穿问题
SQL力扣刷题五
IDEA 配置方法注释自动参数
Inversion problem - key point
学自动化测试哪个培训机构好 试听课程后就选了这个地方学习
1161. 最大层内元素和 (二叉树的层序遍历)
KVM virtualization job
C#多态的实现
便利贴--46{基于移动端长页中分页加载逻辑封装}
单点登录原理及实现方式
【Go事】一眼看穿 Go 的集合和切片
【Web技术】1397- 深入浅出富文本编辑器
In half a month, MySQL has been consolidated again, and a tens of thousands of words "super hard core" article has been sorted out!
Creation of doubly linked list
Redis缓冲穿透和缓冲击穿工具类的封装
SQL学习笔记——REGEXP运算符
Sql optimization summary!detailed!(Required for the latest interview in 2021)
apisix-入门使用篇
MySQL index usage and optimization