- Learning AWS(Second Edition)
- Aurobindo Sarkar Amit Shah
- 185字
- 2021-06-30 18:52:58
Application structure
The A1 electronics e-commerce project uses a Model-View-Controller (MVC) architectural pattern. As the details of Spring and the MVC architecture are not in the scope of this book, only the relevant parts are explained here. This MVC architecture reflects in the structure of the code as shown in the following diagram:

- Model: The following packages are the Model part of MVC architecture:
- com.a1electronics.ecommerce.dbo: All the entities from the database are mapped to Java objects along with their relationship
- com.a1electronics.ecommerce.dao: A layer to access the objects in the dbo layer and has generic functions to add/remove/delete/update objects
- View: The views folder in the preceding figure is the View part of MVC architecture. These are JavaScript/HTML pages which are returned in response to users requests via the Controller. This is what gets rendered in the users' browser.
- Controller: The package, com.a1electroncs.ecommerce.controllers, is the Controller part of MVC architecture. This is where all the users' requests are accepted and, depending on the application logic, redirected to the correct service in the com.a1electroncs.ecommerce.controllers services layer package.
This MVC architecture is shown in the following figure:

推薦閱讀
- 網(wǎng)絡(luò)云百問百答
- Mastering Machine Learning for Penetration Testing
- Twilio Cookbook
- HTML5 Game development with ImpactJS
- 信息通信網(wǎng)絡(luò)建設(shè)安全管理概要2
- NB-IoT物聯(lián)網(wǎng)技術(shù)解析與案例詳解
- 物聯(lián)網(wǎng)技術(shù)與應(yīng)用
- Building Web Applications with ArcGIS
- Bonita Open Solution 5.x Essentials
- 5G技術(shù)與標(biāo)準(zhǔn)
- 一本書讀懂TCP/IP
- 物聯(lián)網(wǎng)的機(jī)遇與利用
- Web用戶查詢?nèi)罩就诰蚺c應(yīng)用
- 加密與解密實(shí)戰(zhàn)全攻略
- 企業(yè)網(wǎng)絡(luò)組建與維護(hù)項(xiàng)目式教程