当前位置:网站首页>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
边栏推荐
猜你喜欢
AtCoder—E - Σ[k=0..10^100]floor(X/10^k
In half a month, MySQL has been consolidated again, and a tens of thousands of words "super hard core" article has been sorted out!
unity computeshader的可读写buffer
redis-enterprise use
Redis缓存面临的缓存雪崩问题
Usage of JOIN in MySQL
Single sign-on principle and implementation
透过开发抽奖小程序,体会创新与迭代
MySQL中JOIN的用法
一种用于保证多方子系统数据一致性的方法
随机推荐
实现弹框组件
Redis缓存面临的缓存穿透问题
Find a Go job in 7 days, Conditional statements to learn in Gopher, loop statements, Part 3
3D激光SLAM:LeGO-LOAM论文解读---完整篇
unity-shader-2
7 天找个 Go 工作,Gopher 要学的条件语句,循环语句 ,第3篇
一种用于保证多方子系统数据一致性的方法
3D激光SLAM:LeGO-LOAM论文解读---点云分割部分
redis-enterprise use
SQL - Left join, Right join, Inner join
新人学习小熊派华为iot介绍
[Go Affair] See through Go's collections and slices at a glance
mpu9150(driverack pa简明教程)
逆置问题--重点
Make your own dataset in FCN and train it
Redis缓存面临的缓存击穿问题
WSL2安装.NET 6
强大的SQL计算利器-SPL
unity computeshader的可读写buffer
Intranet Penetration Learning (IV) Domain Lateral Movement - SMB and WMI Service Utilization