Compare commits

...

10 Commits

@ -4,19 +4,23 @@
使用jsp、layui、mysql完成的图书馆系统包含用户图书借阅、图书管理员、系统管理员界面功能齐全。
开发工具为eclipse其中mysql为5.7mysql8也行
开发工具为eclipse环境java8**必须tomcat9.0+**mysql为5.7mysql8也行
**演示地址**http://library.mingyuefusu.cn/library_manager_system
**演示地址**http://library.mingyuefusu.top
`(谢谢手下留情)`
**零基础部署视频教程**https://www.bilibili.com/video/BV1ub4y147cG
**云主机部署视频教程** https://www.bilibili.com/video/BV1ES4y1H753/
**用户账号密码1805010219 1234**
**图书管理员账号密码root 1234**
**图书管理员(用户登录界面右下角图标)账号密码root 1234**
**系统管理员账号密码admin admin**
**系统管理员(用户登录界面右下角图标)账号密码admin admin**
如果遇到解决不了的问题或需要课设相关文档等,请添加**Q群交流群1021590105**
请善用百度,并查看下面的 部署部分 如果遇到解决不了的问题或需要课设相关文档等,请添加**Q群交流群751988854**注意看是否满500人1021590105
如果本项目对你有帮助赏个star吧
@ -85,15 +89,50 @@
- 规则表
- 编号、限制借阅数量、限制借阅天数、图书超期每天费用
- 公告表
- 编号、标题、公告内容、发布日期
# 二、部署
将**library.sql文件导入mysql数据库**,并需要修改以下两个数据库连接相关属性(数据库账号密码、数据库表名)
下载压缩包,或者使用`git clone`下载(使用`git checkout maven`可以更换为分支maven其使用maven进行依赖管理更便于运行部署
将**library.sql文件导入mysql数据库不会请百度mysql如何导入sql文件**,并修改以下文件的数据库连接相关属性(数据库账号密码、数据库表名)
![](https://static.mingyuefusu.top/images/2022/06/20/1630034271536.png)
## 2.1 乱码
请百度: Eclipse 乱码
1. 全部文件、Eclipse等的编码都设置为UTF-8
2. 设置 Vm options参数-Dfile.encoding=UTF-8
3. 清空浏览器缓存
## 2.2 点击登录无反应
- 浏览器F12查看请求数据返回状态码等不会请百度Web开发必须会
- 查看报错控制台报错,复制错误到百度
## 2.3 账号密码不正确
工作人员和系统管理员的登录入口是借阅证登录界面的右下角的两个小人
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1640067539260.png)
## 2.3 其他问题
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/image-20201117122227215.png)
- 善用百度
- 进群,查阅部署项目的文档,或者设计实现
- 进群,建议提问模板
- 我在做什么
- 我的环境是什么Tomcat版本JDK版本MySQL版本IDE版本
- 我遇到了什么问题(截图完整报错信息)
- 我尝试了什么方法
- 我猜测可能是。。。
- 请问大家,我应该怎么做?
- 你这个问题,只要一杯奶茶,群友就能帮你解决
- 尽量不要 @群主,群主也有自己的事情,群主看到群里的提问,会给建议
# 三、项目演示
@ -101,50 +140,50 @@
**图书查询**
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/image-20201117124235584.png)
![](https://static.mingyuefusu.top/images/2022/06/20//image-20201117124235584.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605588101413.png)
![](https://static.mingyuefusu.top/images/2022/06/20/1605588101413.png)
其他省略
## 图书管理员
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605588522320.png)
![](https://static.mingyuefusu.top/images/2022/06/20/1605588522320.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/image-20201117124314632.png)
![](https://static.mingyuefusu.top/images/2022/06/20//image-20201117124314632.png)
## 系统管理员
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605586686520.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605586686520.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605588740472.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605588740472.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605588792283.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605588792283.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605586708802.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605586708802.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605586720887.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605586720887.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605586727919.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605586727919.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605586733759.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605586733759.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605586739400.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605586739400.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605588836223.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605588836223.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605586754111.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605586754111.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605588810178.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605588810178.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605586772278.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605586772278.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605586779311.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605586779311.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605586784032.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605586784032.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605586790655.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605586790655.png)
![](https://ming-edu.oss-cn-beijing.aliyuncs.com/1605586794872.png)
![](https://static.mingyuefusu.top/images/2022/06/20//1605586794872.png)

@ -7,10 +7,10 @@ import java.sql.ResultSet;
import java.sql.SQLException;
public class Base {
private static String driver = "com.mysql.cj.jdbc.Driver";
private static String url = "jdbc:mysql://localhost:3306/library?&useSSL=false&serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8";
private static String username = "root";
private static String password = "root";
private static final String driver = DBConstants.driver;
private static final String url = DBConstants.url;
private static final String username = DBConstants.username;
private static final String password = DBConstants.password;
/**
*

@ -0,0 +1,8 @@
package javabean;
public class DBConstants {
public static final String driver = "com.mysql.cj.jdbc.Driver";
public static final String url = "jdbc:mysql://localhost:3306/library?&useSSL=false&serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8";
public static final String username = "root";
public static final String password = "root";
}

@ -6,10 +6,10 @@ import java.sql.ResultSet;
import java.sql.Statement;
public class JDBCBean {
private static String driver = "com.mysql.cj.jdbc.Driver";
private static String url = "jdbc:mysql://localhost:3306/library?&useSSL=false&serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8";
private static String username = "root";
private static String password = "root";
private static final String driver = DBConstants.driver;
private static final String url = DBConstants.url;
private static final String username = DBConstants.username;
private static final String password = DBConstants.password;
private Connection conn = null;
private Statement stmt = null;

Loading…
Cancel
Save