07 2020 档案

摘要: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 阅读(921) 评论(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)
摘要:在这里,URL最好改成阿里云的URL:https://start.aliyun.com/ 阅读全文
posted @ 2020-07-28 11:26 nuister 阅读(467) 评论(0) 推荐(0)
摘要:###在project structure里给项目添加Web 阅读全文
posted @ 2020-07-28 10:43 nuister 阅读(651) 评论(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)
摘要:问题描述: java代码在开始事务后,先做了一个查询,再insert,此时会报: java.sql.SQLException: could not retrieve transation read-only status server 解决过程: 查看mysql的事物隔离级别 SHOW VARIAB 阅读全文
posted @ 2020-07-11 16:51 nuister 阅读(183) 评论(0) 推荐(0)
摘要:mybatis开发流程 阅读全文
posted @ 2020-07-01 13:45 nuister 阅读(241) 评论(0) 推荐(0)