当前位置:网站首页>MVC mode three-tier architecture
MVC mode three-tier architecture
2022-07-25 08:03:00 【Big pearl is light】
MVC Pattern
MVC yes Model-View-Controller( Model - View - controller ) For short , Its main function is to View presentation is separated from business control code
Model( Model ):
Refers to data perhaps Source of data
It's a data model , It refers to the data obtained , And it is encapsulated . It is usually an entity class object . But the data source of entity class objects , Through the three-tier architecture Business layer and persistence layer ( We call it business model )View ( View ):
Refers to Visual interface
It is used to display data . It's what we learned before jsp and html. It can be either jsp, It can also be html. In our later study , It can also be a mobile displayController( controller ):
controller Act on models and views , Responsible for the scheduling of requests , it Separate the view from the model
He is used to handle requests , He separates the data model from the view , Dispatch from . Let logic control , The presentation data and the encapsulated data model are independent of each other .
He is what we learned before Servlet, We will learn later Filter Of , It can also be used as a controller . But now it is Servlet.
Three layer architecture
In order to achieve a clear level of code , A clear division of responsibilities , Usually, an application is divided into three layers : The presentation layer 、 Business logic layer 、 Data access layer .
The presentation layer (web layer ): Data interaction with browser com.itheima.web The business layer (service layer ): Dedicated to processing business logic com.itheima.service Persistence layer (mapper layer ): Data exchange with database com.itheima.mapper
边栏推荐
- Sqlserver has opened the CDC table. Why can we only pull the full amount of data and can't recognize the incremental data
- RK3399开发板I2C4挂载EEPROM实例
- efcore在Saas系统下多租户零脚本分表分库读写分离解决方案
- [QNX Hypervisor 2.2用户手册]9.3 cpu
- Big guy Qiu zhaomianjing
- Cache design in Web services (error allowed, error not allowed)
- Calculation formula of cross entropy
- P1086 [noip2004 popularization group question 2] peanut picking
- Teach you to use cann to convert photos into cartoon style
- mysql 如何获取两个集合的交集/差集/并集
猜你喜欢

Introduction to machine learning (I): understanding maximum likelihood estimation in supervised learning
![[unity entry program] make my first little game](/img/e7/5dcb113c7fabd73ed632fb29619369.png)
[unity entry program] make my first little game
![[audio and video] picture YUV data format](/img/f6/922ff1f8bbbeff83a095a3ad5e797f.png)
[audio and video] picture YUV data format

CAS操作
![[unity introduction program] basic concepts GameObject & components](/img/fc/7e0a6f057394a6fd4409a7bf518ba5.png)
[unity introduction program] basic concepts GameObject & components

Vs2019 C MFC installation

475-82(230、43、78、79、213、198、1143)

app耗电量测试

牛客动态规划训练

Network file storage system (III) practice of fastdfs distributed file system
随机推荐
475-82(230、43、78、79、213、198、1143)
滴滴 - dispatching
P1086 [NOIP2004 普及组第二题] 花生采摘
Big guy Qiu zhaomianjing
ArcGIS Pro脚本工具(10)——从图层生成.stylx样式符号
Changes were made to tables that cannot be recreated or the prevent saving changes that require the table to be recreated option was enabled
Didi - dispatching
Redis core principles
Cache design in Web services (error allowed, error not allowed)
App power consumption test
Hikaricp connection pool does not operate for a period of time, and the data is automatically disconnected
用一个栈实现另一个栈的排序
Design a stack with getmin function
How to create a simple electron desktop program
查看电脑重启次数、原因
设计一个有getMin功能的栈
CSDN custom T-shirts are waiting for you to get, and the benefits of new programmer are coming!
Install MySQL 8.0 using docker
[QNX Hypervisor 2.2用户手册]9.3 cpu
Raspberry pie 4B ffmpeg RTMP streaming

