当前位置:网站首页>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
边栏推荐
猜你喜欢
Cloudera Manager —— 端到端的企业数据中心管理工具
应用层基础 —— 认识URL
unity-shader-2
内网渗透学习(四)域横向移动——SMB和WMI服务利用
准确率(Accuracy)、精度(Precision)、召回率(Recall)和 mAP 的图解
Summary of three methods for SQL deduplication
LeetCode 1161.最大层内元素和:层序遍历
Intranet Penetration Learning (IV) Domain Lateral Movement - SMB and WMI Service Utilization
sql力扣刷题八
淀粉与纤维素
随机推荐
"JUC Concurrent Programming - Advanced" 06 - Immutability of Shared Models (Design of Immutable Classes | Use of Immutable Classes | Flyweight Pattern)
最全phpmyadmin漏洞汇总
Hospital management system database, course design, SQLserver, pure code design
单点登录的三种方式
darknet 训练分类网络
Can I find a Go job in 7 days?Learn Go with arrays and pointers
无法将“node.exe”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。
A Method for Ensuring Data Consistency of Multi-Party Subsystems
SQL去重的三种方法汇总
单点登录原理及实现方式
分布式事务——分布式事务简介、分布式事务框架 Seata(AT模式、Tcc模式、Tcc Vs AT)、分布式事务—MQ
MySQL 的 limit 分页查询及性能问题
strings包详细文档+示例
sql力扣刷题六
一、excel转pdf格式jacob.jar
Find a Go job in 7 days, Conditional statements to learn in Gopher, loop statements, Part 3
《MySQL高级篇》四、索引的存储结构
darknet 硬件软件环境的设置和检测
Redis缓冲穿透和缓冲击穿工具类的封装
[Part 1 of Cloud Native Monitoring Series] A detailed explanation of Prometheus monitoring system