本文介绍了如何设计一个基于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.