下载此文档

基于MVC模式电子商务网站(BC)分析与设计.docx


文档分类:IT计算机 | 页数:约9页 举报非法文档有奖
1/9
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/9 下载此文档
文档列表 文档介绍
Before we start our journey into the internals of Spring MVC, we first need to understand the
different layers of a wessage would work with Holla.
Figure 1-1. Sending a new chat message from Holla 1. The user submits a new chat message.
2. The controller ’ s event handlers. trigg
The controller creates a new Chat Model record.
The controller then updates the view.
The user sees his new chat message in chat log.
The MVC architectural pattern can even be implemented without libraries or frameworks. The key is to divide up the responsibilities of the MVC components into clearly defined sections of code, keeping them decoupled. This allows for independent
development,testing, and maintenance of each component.
Let ’ s explore the components of MVC in detail.
The Model :
The mo del is where all the application ’ s data objects are stored. For example, we might have
a User Model that contains a list of users, their attributes, and any logic associated specifically
with that model.
A model does not know anything about views or controllers. The only thing a model should contain is data and the logic associated directly with that data. Any event handling code, view templates, or logic not specific to that model should be kept well clear of it. You know an application ’ s MVC architectureisviolated when you start seeing view

基于MVC模式电子商务网站(BC)分析与设计 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数9
  • 收藏数0 收藏
  • 顶次数0
  • 上传人zhaojz4822
  • 文件大小59 KB
  • 时间2022-03-12