随笔分类 -  图书管理系统

一个ssm框架的学习
摘要:mybatis逆向工程 提高开发效率 使用步骤 1、在pom.xml中加入依赖 需要插入的依赖 <!-- mybatis逆向工程 --> <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generat 阅读全文
posted @ 2020-08-13 11:12 nuister 阅读(246) 评论(0) 推荐(0)
摘要:图书类型管理模块(类型查询) 新建图书类型管理页面 在WEB-INF/pages里新建type/typeIndex.jsp,把table.html里的代码拷贝进去 webapp/api/init.json里的类型管理的页面路径相应更改以对应(改成typeIndex,是Controller层的路径) 阅读全文
posted @ 2020-08-13 11:08 nuister 阅读(540) 评论(0) 推荐(0)
摘要:图书类型管理-添加图书类型 在typeIndex.jsp中找到添加的相关代码进行修改 修改监听add添加的监听事件,修改跳转路由 /** * toolbar事件监听 */ table.on('toolbar(currentTableFilter)', function (obj) { if (obj 阅读全文
posted @ 2020-08-13 11:07 nuister 阅读(600) 评论(0) 推荐(0)
摘要:LayUi LayUi入门 下载LAYUI MINI后台管理模板 把LAYUI MINI 项目引入本项目 把layuimini里的***api、css、images、js、li、page*** 文件夹复制到WEB-INF文件夹下 在WEB-INF/pages里新建index.jsp并把layuimi 阅读全文
posted @ 2020-07-29 09:04 nuister 阅读(922) 评论(0) 推荐(0)
摘要:整合spring和springmvc 1、在web.xml中添加spring监听器 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http:/ 阅读全文
posted @ 2020-07-29 08:57 nuister 阅读(272) 评论(0) 推荐(0)
摘要:整合SpringMVC 1、在web.xml中配置前端控制器和中文乱码处理 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www 阅读全文
posted @ 2020-07-29 08:48 nuister 阅读(267) 评论(0) 推荐(0)
摘要:整合spring 1、新建ClassInfo实体类 根据数据库中的class_info表字段,在com.gychen.po里新建ClassInfo package com.gychen.po; import java.io.Serializable; public class ClassInfo i 阅读全文
posted @ 2020-07-29 08:47 nuister 阅读(417) 评论(0) 推荐(0)
摘要:1、DAO层接口和实现 在classInfoDao.java里写增删改接口 package com.gychen.dao; import com.gychen.po.ClassInfo; import org.apache.ibatis.annotations.Param; import org.a 阅读全文
posted @ 2020-07-22 18:53 nuister 阅读(358) 评论(0) 推荐(0)
摘要:返回响应信息工具类 在com.gychen.util里新建Constants和RestRespond Constants package com.gychen.util; /** * 常量类 */ public class Constants { public final static int OK 阅读全文
posted @ 2020-07-22 18:52 nuister 阅读(459) 评论(0) 推荐(0)
摘要:创建ssm项目工程 3.1 创建maven工程 1、打开IDEA->file->new->project 2、选择Maven,勾选Create from archetype, 选择org.apache.maven.archetypes:maven-archetype-webapp 3.2 使用自己安 阅读全文
posted @ 2020-07-22 16:03 nuister 阅读(333) 评论(0) 推荐(0)
摘要:整合mybatis 配置数据源文件jdbc.properties 在sources里新建jdbc.properties jdbc.driver=com.mysql.cj.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/library?serverTi 阅读全文
posted @ 2020-07-22 15:55 nuister 阅读(333) 评论(0) 推荐(0)
摘要:数据库表设计 1、图书分类表 drop table if exists class_info; /* */ /* Table: class_info */ /* */ create table class_info ( `id` int not null auto_increment, `name` 阅读全文
posted @ 2020-07-22 15:47 nuister 阅读(413) 评论(0) 推荐(0)
摘要:图书馆管理系统 需求 用户需求功能: 普通用户:查询图书、查看公告、查询个人信息、预约借书 还书 图书管理员:发布公告、上架新书、下架图书、处理图书借阅和异常还书(丢失、破损、延迟还书等) 系统管理员:管理用户、设置信息等 阅读全文
posted @ 2020-07-22 15:45 nuister 阅读(343) 评论(1) 推荐(0)