[SSH + Bootstrap] wireless ordering system

Source: Internet
Author: User

In my sophomore year, I had a simple wireless ordering system and a simple website in the form of CMS when I learned Java to learn web.
I'm almost a senior now. I haven't found anything in this area for more than a year. I just forgot about it,By the way, it is open-source.

1. Introduction

The backend is based on spring, struts1, and hibernate, And the frontend is implemented using Bootstrap.

Few functions are implemented, such as basic CRUD operations, file upload, and Ajax asynchronous refresh.

For more information about Bootstrap, seeBootstrap Chinese Network

2. code structure and class diagram Structure



3 applicationcontext. xml configuration file

<? XML version = "1.0" encoding = "UTF-8"?> <Beans xmlns = "http://www.springframework.org/schema/beans" 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.xsdhttp://www.springframework.org/schema/context HTTP: // Www.springframework.org/schema/context/spring-context-2.5.xsdhttp://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd "> <! -- Enable annotation scanning --> <context: annotation-config/> <! -- Configure the data source --> <bean id = "datasource" class = "org. apache. commons. DBCP. basicdatasource "> <property name =" driverclassname "value =" com. mySQL. JDBC. driver "/> <property name =" url "value =" JDBC: mysql: // localhost: 3306/wireless "/> <property name =" username "value =" root "/> <property name =" password "value =" 110511 "/> </bean> <! -- Configure the session factory --> <bean id = "sessionfactory" class = "org. springframework. Orm. hibernate3.localsessionfactorybean"> <! -- Set the data source --> <property name = "datasource" ref = "datasource"/> <! -- Configure the ing file --> <property name = "mappingresources"> <list> <value> COM/wireless/entity/HBM/usertbl. HBM. XML </value> <value> COM/wireless/entity/HBM/menutypetbl. HBM. XML </value> <value> COM/wireless/entity/HBM/tabletbl. HBM. XML </value> <value> COM/wireless/entity/HBM/menutbl. HBM. XML </value> <value> COM/wireless/entity/HBM/ordertbl. HBM. XML </value> <value> COM/wireless/entity/HBM/orderdetailtbl. HBM. XML </value> </List> </PR Operty> <property name = "hibernateproperties"> <props> <prop key = "hibernate. dialect "> Org. hibernate. dialect. mysqldialect </prop> <prop key = "hibernate. hbm2ddl. auto "> Update </prop> <prop key =" hibernate. show_ SQL "> true </prop> <prop key =" hibernate. cache. use_second_level_cache "> true </prop> <prop key =" hibernate. cache. provider_class "> Org. hibernate. cache. ehcacheprovider </prop> <prop key = "hibernate. generate_statistics "> True </prop> </props> </property> </bean> <! -- Configure service --> <! -- Configure service --> <bean id = "userservice" class = "com. wireless. web. service. impl. userserviceimpl "/> <bean id =" tableservice "class =" com. wireless. web. service. impl. tableserviceimpl "/> <bean id =" menuservice "class =" com. wireless. web. service. impl. menuserviceimpl "/> <bean id =" orderservice "class =" com. wireless. web. service. impl. orderserviceimpl "/> <! -- Configure action, prototype is the prototype, and a new action is generated each time to solve the concurrency problem --> <bean name = "/login" class = "com. wireless. web. action. loginaction "> <property name =" userservice "ref =" userservice "> </property> </bean> <bean name ="/home "class =" com. wireless. web. action. homeaction "> <property name =" userservice "ref =" userservice "> </property> </bean> <bean name ="/table "class =" com. wireless. web. action. tableaction "> <property name =" tableservice" Ref = "tableservice"> </property> </bean> <bean name = "/menu" class = "com. wireless. web. action. menuaction "> <property name =" menuservice "ref =" menuservice "> </property> </bean> <bean name ="/order "class =" com. wireless. web. action. orderaction "> <property name =" orderservice "ref =" orderservice "> </property> </bean> <! -- Configure the Transaction Manager to uniformly manage sessionfactory transactions --> <bean id = "txmanager" class = "org. springframework. orm. hibernate3.hibernatetransactionmanager "> <property name =" sessionfactory "ref =" sessionfactory "/> </bean> <! -- Enable transaction annotation --> <TX: annotation-driven transaction-Manager = "txmanager"/> </beans>

4. Download source code

Click here to download

To use this function, you must first create a database wireless, import the SQL file to the database, and then modify the configuration parameters of the database in application. xml.

5. Display Results









Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.