简介
在高校中,图书借阅是学生获取知识的一个很重要的途径,所以希望做一个图书管理系统,既能方便学生借书,又能减轻图书馆管理人员的工作负担,高效地完成图书借阅管理工作。
超时未还:
学生借书超时未还管理员可以将学生加入黑名单,学生不可再次借书
学生可以预约借书,可以对图书进行挂失处理
评论功能:
读者可以对图书进行评论,位其他读者借书提供参考价值。评论需要管理员进行审核。
设计模式
SSM框架
效果展示
猿码加q 2439644676
主要代码展示
<?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:content="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 扫描组件-->
<content:component-scan base-package="controller controller.*"/>
<!--开启 注解映射器/适配器-->
<mvc:annotation-driven/>
<!-- 过滤静态资源-->
<!-- <mvc:resources mapping="**/css/**" location="/WEB-INF/css/"/>
<mvc:resources mapping="**/js/**" location="/WEB-INF/js/"/>-->
<!-- 配置 注解映射器 -->
<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"/>
<!-- 配置 注解适配器 -->
<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
<property name="messageConverters">
<list>
<bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"/>
</list>
</property>
</bean>
<!-- 配置 视图解析器 -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<!-- 逻辑视图配置 -->
<!-- 配置前缀 -->
<property name="prefix" value="/WEB-INF/jsp/"/>
<!-- 配置后缀 -->
<property name="suffix" value=".jsp"/>
</bean>
<!-- 配置 multipartResolve 多媒体解析器 -->
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- 配置 解析编码-->
<property name="defaultEncoding" value="UTF-8"/>
<!-- 配置上传大小 -->
<property name="maxUploadSize" value="5242880"/>
</bean>
<!--拦截器 -->
<mvc:interceptors>
<mvc:interceptor>
<!--/** 可以拦截多层-->
<mvc:mapping path="/**"/>
<bean class="controller.interceptor.LoginInterceptor"></bean>
</mvc:interceptor>
</mvc:interceptors>
</beans>