戈家龍 吳紅亞 楊保華
摘要:21世紀互聯網處處是機遇,誰能夠把握機會,將產品快速上線,誰就有可能獲得領先地位。論文基于SSM三大框架javaEE框架spring、springMVC、Mybatis,設計完成了電商網站。首先分析了基于前后端分離的電商網站的必要性和優勢,然后對電商網站進行了需求分析和程序設計,探討了前后端網站開發的技術實現。論文設計了基于SSM框架的前后端分離的電商網站,實現了一些電商網站的基本功能,如登錄注冊、加入購物車、提交訂單、付款。
關鍵詞:電商網站;架構;前后端分離;測試
中圖分類號:TP393 文獻標識碼:A 文章編號:1009-3044(2018)13-0276-02
Design of the Frontend and Backend Separation E-commerce Website Based on SSM
GE Jia-long, WU Hong-ya,YANG Bao-hua
(Changzhou Vocational Institute of Mechatronic Technology,Changzhou 213164, China)
Abstract: The Internet is everywhere in twenty-first Century. If the opportunity and the product can grasped and launched quickly, the leading position will be wined by the company. The e-commerce website is designed based on the three major frameworks of SSM which are javaEE framework spring, springMVC and Mybatis. Firstly, the necessity and advantages of the e-commerce website based on the separation of the front end and the end are analyzed. Then, the demand analysis and program design of the e-commerce website are carried out, and the technology implementation of the front end website development is discussed. Finally,an e-commerce website is implemented based on the SSM framework, and the basic functions is realized, such as registration, shopping cart, order and payment.
Key words: e-commerce website; framework; Separation of frontend and Backend; test
1 背景
隨著互聯網的高速發展,電子商務也日新月盛,人們在網上購買商品已經是非常平常的事情,電商網站正是其中的核心[1]。如何高效,快速地開發網站,成為企業的制勝關鍵[2]。前端、后端和數據庫組成了一個完整的網站[3]。傳統的開發方式將前端代碼和后端代碼混雜在一起,如ASP、JSP技術等,這種開發模式需要在前端穿插后端工作或在后端穿插前端工作,導致代碼可讀性差,開發效率低等問題。基于以上原因,前后端分離的開發架構孕育而生[4-5],提高了網站的開發效率、代碼邏輯更加清晰,更加容易應對變化不斷的需求,更容易維護,綜合減少開發成本。
該論文采用前后端分離和模塊化相結合的開發方式,IDE選擇IntelliJ Idea,與當下最流行的三大javaEE框架spring、springMVC、Mybatis相結合,服務器采用tomcat,數據庫選取Mysql。
2 電商網站的分析與設計
2.1 電商網站的需求分析
分為門戶部分和后臺管理部分。……