Review and start again——First Period JAVA web Program hotelmanagement:4. MVC mode summary

本文详细介绍了 Java 开发过程中 MVC (Model-View-Controller) 模式的定义及实现细节,包括模型(Model)、视图(View)和控制器(Controller)各部分的作用,并探讨了经典的 JSP + Servlet + JavaBean 架构以及 VO 和 PO 的概念。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

This artical will describe the MVC frame in the JAVA development process roughly.

The three sections of today’s are:
1.The defination and details about MVC.
2. Something about the classical MVC frame jsp+servlet+javabean.
3. Some information of VO and PO.

And today’s blog is the foundation of the one 3 days later.
Understand this one carefully or drop out 3 days later.


Section1:
MVC is a model for creating web applications using MVC (Model-View-Controller) design:

M(Model):The Model represents the core of the application .
The Model is the part of the application that handles the logic of the application data.
Usually the model object is responsible for dealing with the data in the database.
eg. The Class DatabaseConnection.java and the class which definites the data of the database.

V(View):View displays data.
The View is the part of the application that processes the display of data.
Usually views are created from Model data.
eg. Something just like the html, the css, the webXML document and so on.

C(Controller):The Controller processes the input .
The Controller is the part of the application that handles users’ interaction.
Usually the controller is responsible for reading data from the View, controlling users’ input, and sending data to the Model.


section2:
Something about the classical MVC frame jsp+servlet+javabean.

JAVABEAN:

JavaBean is a reusable component written in the Java language. To write to a JavaBean, the class must be concrete and public, and have a constructor with no parameters.
JavaBeans expose internal domain exposed member properties, Set and Get Methods by providing public methods that conform to a consistent design pattern.

As we all know, attribute names conform to this pattern, and other Java classes can discover and manipulate the properties of these JavaBeans through introspection mechanisms (reflection mechanisms).

AND。。。。Given today’s artical is too boring, so paste a picture with Chinese.
在这里插入图片描述


Section3:Some information of VO and PO.

VO(Value Object):
VO is generally used to store and deliver values.

PO(Persistent Object):
A persistent object that can be thought as a Java object that maps to a table in the database.

粗略地 roughly
开发过程development process
应用程序核心application core
展示、展现display ≈ represent
process(v)处理
逻辑logic
交互interaction
concrete具体的
constructor构造函数
parameter参数
自省机制introspection mechanisms
反射机制reflection mechanisms
域domain
内部域internal domain
value object 值对象

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值