电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

基于MVC模式的电子商务网站的分析及其设计应用

基于MVC模式的电子商务网站的分析及其设计应用_第1页
1/11
基于MVC模式的电子商务网站的分析及其设计应用_第2页
2/11
基于MVC模式的电子商务网站的分析及其设计应用_第3页
3/11
Based on MVC Pattern Analysis and design of e-commerce (B2C)sitesBefore we start our journey into the internals of Spring MVC, we first need to understand the different layers of a web application. And we’ll begin that discussion with a brief introduction of the MVC pattern in general, including what it is and why should we use it. After reviewing the MVC Pattern, we will go through the different layers in a web application and see what role each layer plays in the application. The Model View Controller pattern (MVC pattern) was first described by Trygve Reenskaug when he was working on Smalltalk at Xerox. At that time, the pattern was aimed at desktop applications. This pattern divides the presentation layer into different kinds of components. Each component has its own responsibilities. The view uses the model to render itself. Based on a user action, the view triggers the controller, which in turn updates the model. The model then notifies the view to (re)render itself.The MVC pattern is all about separation of concerns. As we mentioned previously, each component has its own role (see Table 3-1). Separation of concerns is important in the presentation layer because it helps us keep the different components clean. This way, we don’t burden the actual view with business logic, navigation logic, and model data. Following this approach keeps everything nicely separated, which makes it easier to maintain and test our application.What Is MVC:MVC is a design pattern that breaks an application into three parts: the data (Model),the presentation layer (View), and the user interaction layer (Controller). In otherwords, the event flow goes like this:1. The user interacts with the application.2. The...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

基于MVC模式的电子商务网站的分析及其设计应用

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部