当前位置:网站首页>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
边栏推荐
猜你喜欢

In half a month, MySQL has been consolidated again, and a tens of thousands of words "super hard core" article has been sorted out!
![[ 图 论 ]二分图判定及其匹配(基础+提高)](/img/79/56f750e71f558debe3d99404e296e3.png)
[ 图 论 ]二分图判定及其匹配(基础+提高)

3D激光SLAM:LeGO-LOAM论文解读---点云分割部分

apisix-入门使用篇

分布式事务——分布式事务简介、分布式事务框架 Seata(AT模式、Tcc模式、Tcc Vs AT)、分布式事务—MQ

Android studio连接MySQL并完成简单的登录注册功能

2022/7/28

Usage of exists in sql

《云原生的本手、妙手和俗手》——2022全国新高考I卷作文

《MySQL高级篇》五、InnoDB数据存储结构
随机推荐
mpu9150(driverack pa简明教程)
Distributed Transactions - Introduction to Distributed Transactions, Distributed Transaction Framework Seata (AT Mode, Tcc Mode, Tcc Vs AT), Distributed Transactions - MQ
Sql optimization summary!detailed!(Required for the latest interview in 2021)
Yarn安装配置(vsftpd安装配置)
最新MySql安装教学,非常详细
ApiPost 真香真强大,是时候丢掉 Postman、Swagger 了
mysql 自动添加创建时间、更新时间
v-model的原理
【云原生监控系列第一篇】一文详解Prometheus普罗米修斯监控系统(山前前后各有风景,有风无风都很自由)
逆置问题--重点
下课看着文档走回实验室,我重新拾起了遗忘的SQL运算符
deeplab实现自己遥感地质分割数据集
5 个开源的 Rust Web 开发框架,你选择哪个?
CoCube群机器人预览→资讯剧透←
基于Multisim的函数信号发生器–方波、三角波、正弦波[通俗易懂]
windows平台下的mysql启动等基本操作
3D激光SLAM:LeGO-LOAM论文解读---完整篇
redis-企业级使用
蓝牙协议栈开发板 STM32F1 跑蓝牙协议栈 –传统蓝牙搜索演示以及实现原理[通俗易懂]
redis-enterprise use