本文介紹了如何設計一個基于java流行開源框架的網上拍賣系統——SUSESAKHI。
2009年的上半年,我一直在位于中國服裝第一街的杭州四季青網絡科技有限公司做網絡開發的實習生。SUSESAKHI使用了與公司的服裝批發網站sjq.cn一樣的架構,即spring, ibatis, spring mvc ,velocity。而SUSESAKI是我在實習中完成了項目經理分派的任務后抽空開發的一個項目。當然,它得到了同事們很多的幫助。
SUSESAKHI采用常見的三層架構——數據持久層、業務邏輯層、頁面表達層。數據持久層采用SQL映射框架ibatis,把SQL語句分開并集中到得xml文件,由于SUSESAKHI使用了spring,所以我們使用的是spring 封裝好的ibatis接口。在業務邏輯方面,SUSESAKHI使用spring security實現了用戶授權,使用lucene實現了搜索功能,使用QUARTZ實現了作業調度。而在頁面表達層,SUSESAKHI采用jquery作為java script框架,并使用了大量的jquery插件。
關鍵詞:電子商務,Java,拍賣,Sql映射,模版語言,全文檢索
ABSTRACT
This article introduces how to design a java web system which is powered by popular open source framework—named SUSASAKHI.
In the first half of the year,I was taken on as a graduate trainee by Hang Zhou Ever Green Network Technology Company Limited which is located in the first clothing street of China. SUSESAKHI uses the same architecture(spring, ibatis, spring mvc, velocity) as the company’s website(sjq.cn).And SUSESAKHI was developed in the free time when I finished the tasks that PM dispatched to me. Of cause, SUSESAKHI gets much helps from my colleagues.
SUSESAKHI uses common three-tier architecture—data persistence tier, business logic tier and expression tier. On the persistence tier, SUSESAKHI uses ibatis as its sql mapping framework. Ibatis divides SQL clauses into xml files. And because we use spring framework ,so we also use the ibatis interfaces which have been encapsulated by spring framework .On the business logic tier, SUSESAKHI uses spring security implementing user authentication, uses lucene implementing search function, uses quartz implementing job scheduling. On the expression tier , SUSESAKHI uses jquery as its java script framework, and uses a lot of jquery plug-ins.