当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Implement the popup component
CoCube群机器人预览→资讯剧透←
初始JDBC 编程
Unix知识:shell详细解读
【虚拟化生态平台】平台架构图&思路和实现细节
pycharm汉化教程(碧蓝幻想汉化插件安装)
逆置问题--重点
lotus-local-net 2k v1.17.0-rc4
Creation of doubly linked list
C#之泛型、委托、事件及其使用
强大的SQL计算利器-SPL
SQL study notes - REGEXP operator
MySQL中JOIN的用法
3D激光SLAM:LeGO-LOAM论文解读---点云分割部分
Summary of three methods for SQL deduplication
Hospital management system database, course design, SQLserver, pure code design
准确率(Accuracy)、精度(Precision)、召回率(Recall)和 mAP 的图解
SQL - Left join, Right join, Inner join
SQL力扣刷题五
线程池 ThreadPoolExecutor 详解