大二那会学习java学web的时候折腾了一个简单的无线点餐系统,cms形式的一个简单网站。
现在马上大四了,一年多没搞这方面发现东西忘得还真快,整理一下,顺便开源了。
1.简介
后端基于spring, struts1和hibernate,前台用bootstrap实现。
实现的功能也比较少,基本的crud操作,文件上传,ajax异步刷新等。
关于bootstrap的学习,请移步
2.代码结构和类图结构
3 applicationContext.xml配置文件
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
com/wireless/entity/hbm/Usertbl.hbm.xml
com/wireless/entity/hbm/Menutypetbl.hbm.xml
com/wireless/entity/hbm/Tabletbl.hbm.xml
com/wireless/entity/hbm/Menutbl.hbm.xml
com/wireless/entity/hbm/Ordertbl.hbm.xml
com/wireless/entity/hbm/Orderdetailtbl.hbm.xml
org.hibernate.dialect.MySQLDialect
update
true
true
org.hibernate.cache.EhCacheProvider
true
4 源码下载
使用的话需要先创建数据库wireless,将sql文件导入数据库,然后修改上面的application.xml中数据库的配置参数
5 效果展示