jsp+ssm+mysql实现图书馆预约占座管理系统项目
jsp+ssm+mysql实现图书馆预约占座管理系统项目
软件工具 Eclipse Mars (IDEA也可) JDK1.7 TOMCAT7 MySQL
下载链接: https://gitee.com/gepanjiang/LibrarySeats
一款由jsp+ssm+mysql实现的图书馆预约占座管理系统,前端采用的是当下最流行的easyui框架,后台用的ssm(spring、springMVC、mybaits)框架,主要实现的功能有:用户管理、菜单管理、角色管理、权限管理、学生管理、教师管理、班级管理、图书馆阅览室管理、学生信用管理、预约占座管理、发帖评论管理、违规统计、占座预约统计等,添加学生和教师时会自动在用户表中注册,定时任务会定时生成座位信息,阅览室分类中可设置信用等级,学生被扣分后信用等级低于相应的值后不能预约相应的阅览室座位。
【配置文件 applicationContext.xml】
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:mvc="http://www.springframework.org/schema/mvc"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"xmlns:aop="http://www.springframework.org/schema/aop"xmlns:tx="http://www.springframework.org/schema/tx"xmlns:jee="http://www.springframework.org/schema/jee"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-3.0.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-3.0.xsdhttp://www.springframework.org/schema/mvchttp://www.springframework.org/schema/mvc/spring-mvc-3.0.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-3.0.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-3.0.xsdhttp://www.springframework.org/schema/jeehttp://www.springframework.org/schema/jee/spring-tx-3.0.xsd"default-autowire="byType"><!-- 自动扫描组件,这里要把controler下面的 controller去除,他们是在spring3-servlet.xml中配置的,如果不去除会影响事务管理的。 --> <context:component-scan base-package="dingzhen"> </context:component-scan> <!--<import resource="applicationContext-bean.xml"/>--><!-- ============================== 数据库配置 ==================================== --><bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><property name="locations"><list><value>classpath*:config.properties</value></list></property>
</bean><!-- 数据源配置 --><bean name="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"><property name="driverClassName"><value>${DRIVER}</value></property><property name="url"><value>${URL}</value></property><property name="username"><value>${USERNAME}</value></property><property name="password"><value>${PWS}</value></property></bean><!-- ================================ MyBatis SqlSession配置 ========================================= --><!-- 使用SqlSessionFactoryBean工厂产生SqlSession对象,方便后期注入Dao --><bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"><property name="dataSource" ref="dataSource" /><property name="configLocation" value="classpath:mybatis_config/Configuration.xml"></property></bean><bean class="org.mybatis.spring.annotation.MapperScannerPostProcessor"><property name="sqlSessionFactoryBeanName" value="sqlSessionFactory" /><property name="basePackage" value="dingzhen.dao" /></bean><!-- 开启事务注解驱动 --><tx:annotation-driven /><!-- (事务管理)transaction manager, use JtaTransactionManager for global tx --><bean id="transactionManager"class="org.springframework.jdbc.datasource.DataSourceTransactionManager"><property name="dataSource" ref="dataSource" /></bean> <!-- ********************************定义AOP切面******************************** --><aop:aspectj-autoproxy /><!-- 自动装载aop --><bean id="logAspect" class="dingzhen.aop.LogAspect"/><!-- 切面定义(采用注解的方式定义及使用) -->
</beans>
【MyBatis: Student.xml】
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="dingzhen.dao.StudentDao"><select id="findStudent" parameterType="student" resultType="student">select a.id as id,a.name as name,a.no as no,a.sex as sex,a.birth as birth,a.phone as phone,a.mail as mail,a.photo as photo,a.clazzid as clazzid,b.name as clazznamefrom student a left join clazz b on a.clazzid = b.id where 1 =1 <if test="clazzid != null and '' != clazzid"> <![CDATA[ and clazzid = #{clazzid} ]]> </if><if test="name != null and '' != name"> <![CDATA[ AND a.name like '%' #{name} '%' ]]> </if><if test="no!=null and ''!=no"> <![CDATA[ AND a.no like '%' #{no} '%' ]]> </if><if test="page != null and rows != null" > limit #{page}, #{rows} </if></select><select id="countStudent" parameterType="student" resultType="int">select count(*)from student a left join clazz b on a.clazzid = b.id where 1 =1 <if test="clazzid != null and '' != clazzid"> <![CDATA[ and clazzid = #{clazzid} ]]> </if><if test="name != null and '' != name"> <![CDATA[ AND a.name like '%' #{name} '%' ]]> </if><if test="no!=null and ''!=no"> <![CDATA[ AND a.no like '%' #{no} '%' ]]> </if></select><insert id="addStudent" parameterType="student" >insert student(no,name,sex,clazzid,birth,phone,mail,photo) values (#{no},#{name},#{sex},#{clazzid},#{birth},#{phone},#{mail},#{photo})</insert><update id="updateStudent" parameterType="student">update student set<trim suffixOverrides=","><if test="name!=null">name=#{name},</if><if test="no!=null">no=#{no},</if><if test="sex!=null">sex=#{sex},</if><if test="clazzid!=null">clazzid=#{clazzid},</if><if test="birth!=null">birth=#{birth},</if><if test="phone!=null">phone=#{phone},</if><if test="mail!=null">mail=#{mail},</if><if test="phone!=null">phone=#{phone},</if></trim><where>id=#{id}</where></update><delete id="deleteStudent" parameterType="Integer">delete from student <where>id=#{id}</where></delete><select id="findOneStudentByno" resultType="student">select a.id as id,a.name as name,a.no as no,a.sex as sex,a.birth as birth,a.phone as phone,a.mail as mail,a.photo as photo,a.clazzid as clazzid,b.name as clazznamefrom student a left join clazz b on a.clazzid = b.id where a.no = #{no} </select></mapper>
jsp+ssm+mysql实现图书馆预约占座管理系统项目相关推荐
- Jsp+Ssm+Mysql实现图书馆预约占座管理系统项目源码
此篇为大家推荐的是基于jsp+ssm+mysql实现的图书馆预约占座管理系统 前端采用的是当下最流行的easyui框架 后台用的ssm(spring.springMVC.mybaits)框架 主要实现 ...
- c#erp项目源码 mysql_Jsp+Ssm+Mysql实现图书馆预约占座管理系统项目源码(可带论文文档)...
JSP+SSM+MYSQL实现图书馆预约占座管理系统项目源码(可带论文文档). 一款ssm图书馆预约占座管理系统,此系统有论文文档,需单独购买,此商品只为项目源码. 提前预定的好处:一开始我们这边有大 ...
- 图书馆座位预定管理系统前端设计_jsp+ssm+mysql实现图书馆预约占座管理系统项目源码...
[项目功能描述] 图书馆预约占座管理系统的开发技术为jsp+ssm+mysql,前端技术为jquery easyui框架,后台用的ssm(spring.springMVC.mybaits)框架,主要实 ...
- 图书馆预约占座管理系统项目源码+文档+jsp+ssm+mysql
[项目功能描述] [源码下载] 图书馆预约占座管理系统的开发技术为jsp+ssm+mysql,前端技术为jquery easyui框架,后台用的ssm(spring.springMVC.mybaits ...
- 基于JAVA+SpringMVC+Mybatis+MYSQL的图书馆预约占座管理系统
项目功能: 系统功能分为学生和管理员二种角色,管理员功能包括用户管理:角色管理.菜单管理.日志查看.教师信息管理.班级信息管理.学生信息管理.阅览室管理.信用积分管理.选座管理.通知公告管理.交流管理 ...
- easyui不同的jsp页面之间混乱_JSP+SSM+Mysql实现的图书馆预约占座管理系统
项目简介 项目来源于:https://gitee.com/gepanjiang/LibrarySeats 因原gitee仓库无数据库文件且存在水印,经过本人修改,现将该仓库重新上传至个人gitee仓库 ...
- [含论文+开题报告+源码等]SSM图书馆预约占座系统[包运行成功]
源码获取:我的博客资源页面可以下载!!!! 项目名称 [含论文+开题报告+源码等]SSM图书馆预约占座系统[包运行成功] 视频介绍 (精品)[含论文+开题报告+源码等]SSM图书馆预约占座系统[包运 ...
- JAVA计算机毕业设计图书馆预约占座系统(附源码、数据库)
JAVA计算机毕业设计图书馆预约占座系统(附源码.数据库) 目运行 环境项配置: Jdk1.8 + Tomcat8.5 + Mysql + HBuilderX(Webstorm也行)+ Eclispe ...
- (php毕业设计)基于php图书馆预约选座管理系统源码
基于php图书馆预约选座管理系统 本设计是采用了php编程语言和mysql数据库开发的图书馆预约选座系统,解决大学生再图书馆选座难的问题,本设计采用学生和管理员两个角色,其中学生可以在线选座,进行预约 ...
最新文章
- 处理Http请求Gzip格式响应
- 开发chrome 插件, background.js中 console log 看不到解决方法
- 边缘和智能,是谁在借谁上位?
- Git 忽略提交 .gitignore
- SpringBoot 2.0静态资源映射
- Jquery each() 如何操作动态添加的DOM元素
- 一文读懂深度学习:从神经元到BERT
- 转行学AI,如何选择适合的方向
- 最详细win7下手动搭建PHP环境:apache2.4.23+php7.0.11
- eclipse中server location为灰色,不能修改
- Angular-Observable和RxJS
- 悟透delphi 第十一章 面向对象数据库基础
- 全新起航,无悔青春-嵌入式19031开班典礼
- ARM嵌入式开发,高通MSM8937核心板h
- 5G 商用第三年:无人驾驶的“上山”与“下海”
- Greenplum小把戏 - 仿造Oracle rownum
- 【VBScript】MsgBox()函数
- 配置SQLServer允许远程连接
- 《海边的卡夫卡》摘抄
- 算法学习-零子数组,最大连续子数组
热门文章
- 什么是CSRF(跨站请求伪造)?
- 安装web服务器组件,在Windows2003系统中如何安装Web服务器组件?
- 【PyTorch教程】制作数据集的标签(label)
- 改变学习模式,在课外学习中获得突破
- linux hdmi输出快捷键,Linux 下的投影仪 HDMI 输出设置
- Java Apple_Apple严控Java太不人性化
- 阿里云EDAS满分通过可信云微服务先进级认证,助力企业低成本轻松上云
- DELL D630 for Win2003 声卡驱动
- 计算机的领域分类网上购物属于,大学本科计算机专业网上购物系统设计毕业论文.doc...
- python程序在嵌入式linux系统运行。。