• 图书管理系统(SpringBoot+SpringMVC+Mybatis)


    目录

    项目业务

    开发环境与技术栈 

    项目功能 

    项目演示 

    用户登录 

     用户管理

    学生信息管理和图书信息管理类似于用户管理 

    图书借阅信息管理

    数据库设计

    数据表关系图

    创建数据库及表 

    前后端接口  

    查询专业字典

    查询毕业年份字典

    查询图书借阅信息

    查询班级(数据字典)

    查询图书(数据字典)

    查询学生(数据字典)

    新增图书借阅信息

    删除图书借阅信息

    查询图书借阅详情

    修改图书借阅信息


    项目业务

    主要业务:管理学校图书信息,记录并管理学生借阅图书信息 

    开发环境与技术栈 

    开发环境:MySQL、Maven、Linux(云服务器部署)、IDEA、Git

    技术栈:SpringBoot、SpringMVC、Mybatis

    项目功能 

    用户注册、用户登录、会话管理 、学生信息管理、图书信息管理、图书借阅信息管理

    项目演示 

    用户登录 

     用户管理

     新增用户

     修改用户

     删除用户

    学生信息管理和图书信息管理类似于用户管理 

    图书借阅信息管理

    借阅信息查询

    新增借阅信息

     修改借阅信息 

     

    删除借阅信息

     

    数据库设计

    数据表关系图

    创建数据库及表 

    图书管理系统: 对图书进行借阅等操作 (gitee.com)

    前后端接口  

    查询专业字典

    请求 

    GET dict/tag/query?dictionaryKey=000002

    响应

    1. {
    2. "success" : true,
    3. "code" : "200",
    4. "message" : "操作成功",
    5. "data" : [ {
    6. "dictionaryTagKey" : "000002001",
    7. "dictionaryTagValue" : "中文系"
    8. }, {
    9. "dictionaryTagKey" : "000002002",
    10. "dictionaryTagValue" : "英语系"
    11. }, {
    12. "dictionaryTagKey" : "000002003",
    13. "dictionaryTagValue" : "计算机科学与技术"
    14. } ]
    15. }

    查询毕业年份字典

    请求

    GET dict/tag/query?dictionaryKey=000001

    响应

    1. {
    2. "success" : true,
    3. "code" : "200",
    4. "message" : "操作成功",
    5. "data" : [ {
    6. "dictionaryTagKey" : "000001001",
    7. "dictionaryTagValue" : "2022届"
    8. }, {
    9. "dictionaryTagKey" : "000001002",
    10. "dictionaryTagValue" : "2023届"
    11. }, {
    12. "dictionaryTagKey" : "000001003",
    13. "dictionaryTagValue" : "2024届"
    14. }, {
    15. "dictionaryTagKey" : "000001004",
    16. "dictionaryTagValue" : "2025届"
    17. } ]
    18. }

    查询图书借阅信息

    请求

    GET borrowRecord/query?searchText=&sortOrder=asc&pageSize=7&pageNumber=1

    响应

    1. {
    2. "success" : true,
    3. "code" : "200",
    4. "message" : "操作成功",
    5. "total" : 9, "data" : [ {
    6. "id" : 1,
    7. "startTime" : "2020-01-01 14:20:00",
    8. "endTime" : "2020-02-01 14:20:00",
    9. "createTime" : "2020-06-17 15:52:33",
    10. "book" : {
    11. "id" : 1,
    12. "bookName" : "高等数学",
    13. "author" : "王某",
    14. "price" : 45.20
    15. },
    16. "classes" : {
    17. "id" : 1,
    18. "classesName" : "大学1班",
    19. "classesGraduateYear" : "000001001",
    20. "classesMajor" : "000002002",
    21. "classesDesc" : "团结"
    22. },
    23. "student" : {
    24. "id" : 1,
    25. "studentName" : "爱学习的",
    26. "studentNo" : "s00001",
    27. "idCard" : "222222222222222222",
    28. "studentEmail" : "123@qq.com"
    29. }
    30. }, {
    31. "id" : 7,
    32. "startTime" : "2022-02-01 14:20:00",
    33. "endTime" : "2022-02-21 14:20:00",
    34. "createTime" : "2022-06-17 15:52:33",
    35. "book" : {
    36. "id" : 3,
    37. "bookName" : "大学英语",
    38. "author" : "李某",
    39. "price" : 33.00
    40. },
    41. "classes" : {
    42. "id" : 1,
    43. "classesName" : "大学1班",
    44. "classesGraduateYear" : "000001001",
    45. "classesMajor" : "000002002",
    46. "classesDesc" : "和睦"
    47. },
    48. "student" : {
    49. "id" : 3,
    50. "studentName" : "爱学习的",
    51. "studentNo" : "s00003",
    52. "idCard" : "222222222222222224",
    53. "studentEmail" : "123@qq.com"
    54. }
    55. } ]
    56. }

    查询班级(数据字典)

    使用在下拉菜单中,要求按照数据字典响应格式返回
    请求
    GET http://localhost:8080/classes/queryAsDict

    响应

    1. {
    2. "success" : true,
    3. "code" : "200",
    4. "message" : "操作成功",
    5. "data" : [ {
    6. "dictionaryTagKey" : "1",
    7. "dictionaryTagValue" : "大学1班",
    8. "classesGraduateYear" : "000001001",
    9. "classesMajor" : "000002003"
    10. }, {
    11. "dictionaryTagKey" : "2",
    12. "dictionaryTagValue" : "大学2班",
    13. "classesGraduateYear" : "000001002",
    14. "classesMajor" : "000002003"
    15. }, {
    16. "dictionaryTagKey" : "3",
    17. "dictionaryTagValue" : "大学3班",
    18. "classesGraduateYear" : "000001003",
    19. "classesMajor" : "000002003"
    20. } ]
    21. }

    查询图书(数据字典)

    使用在下拉菜单中,要求按照数据字典响应格式返回
    请求
    GET book/queryAsDict

    响应

    1. {
    2. "success" : true,
    3. "code" : "200",
    4. "message" : "操作成功",
    5. "data" : [ {
    6. "dictionaryTagKey" : "1",
    7. "dictionaryTagValue" : "高等数学",
    8. "author" : "王某", "price" : 45.20
    9. }, {
    10. "dictionaryTagKey" : "2",
    11. "dictionaryTagValue" : "数据结构", "author" : "李某", "price" : 61.50
    12. }, {
    13. "dictionaryTagKey" : "3",
    14. "dictionaryTagValue" : "大学英语", "author" : "张某", "price" : 33.00
    15. }, {
    16. "dictionaryTagKey" : "4",
    17. "dictionaryTagValue" : "大学物理", "author" : "吴某", "price" : 33.00
    18. } ]
    19. }

    查询学生(数据字典)

    下拉菜单:选择班级下拉选项之后,根据选择的班级 id 查询所有学生。要求按照数据字典响应格式返回
    请求
    GET student/queryAsDict?dictionaryKey=2

    响应

    1. {
    2. "success" : true,
    3. "code" : "200",
    4. "message" : "操作成功",
    5. "data" : [ {
    6. "dictionaryTagKey" : "6",
    7. "dictionaryTagValue" : "爱学习的",
    8. "studentNo" : "s00006",
    9. "idCard" : "222222222222222227"
    10. }, {
    11. "dictionaryTagKey" : "7",
    12. "dictionaryTagValue" : "爱学习的",
    13. "studentNo" : "s00007",
    14. "idCard" : "222222222222222228"
    15. } ]
    16. }

    新增图书借阅信息

    请求

    1. POST borrowRecord/add
    2. Content-Type: application/json
    3. {"studentId":"7","bookId":"3","startTime":"2022-06-10 19:40:56","endTime":""}

    响应

    1. {
    2. "success" : true,
    3. "code" : "200",
    4. "message" : "操作成功"
    5. }

    删除图书借阅信息

    请求
    GET borrowRecord/delete?ids=2&ids=3
    响应
    1. {
    2. "success" : true,
    3. "code" : "200",
    4. "message" : "操作成功"
    5. }

    查询图书借阅详情

    请求
    GET borrowRecord/queryById?id=1
    响应
    1. {
    2. "success" : true,
    3. "code" : "200",
    4. "message" : "操作成功",
    5. "data" : {
    6. "id" : 1,
    7. "startTime" : "2022-01-01 14:20:00",
    8. "endTime" : "2022-02-01 14:20:00",
    9. "createTime" : "2022-06-17 15:52:33",
    10. "book" : {
    11. "id" : 1,
    12. "bookName" : "高等数学",
    13. "author" : "王某",
    14. "price" : 45.20
    15. },
    16. "classes" : {
    17. "id" : 1,
    18. "classesName" : "大学1班",
    19. "classesGraduateYear" : "000001001",
    20. "classesMajor" : "000002002",
    21. "classesDesc" : "团结"
    22. },
    23. "student" : {
    24. "id" : 1,
    25. "studentName" : "爱学习的",
    26. "studentNo" : "s00001",
    27. "idCard" : "222222222222222222",
    28. "studentEmail" : "123@qq.com"
    29. }
    30. }
    31. }

    修改图书借阅信息

    请求

    1. POST borrowRecord/update
    2. Content-Type: application/json
    3. {"id":"10","studentId":"3","bookId":"4","startTime":"2020-06-11 19:24:46","endTime":"2020-06-18 19:54:49"}
    响应
    1. {
    2. "success" : true,
    3. "code" : "200",
    4. "message" : "操作成功"
    5. }

    源代码请点击这里哦 

  • 相关阅读:
    C++的STL--->map和set容器的使用
    Sample Average Approximation,SAA
    CentOS配网报错:network is unreachable
    vue 调试工具devtools
    事务+事务并发+事务隔离级别【Interview Question】
    理德外汇名人故事:全球第一理财师——苏茜·欧曼
    国际阿里云服务器买哪种好用点?
    sql server如主键创建时候没有命名,如何利用sql语句删除呢?
    LabVIEW为什么浮点数会丢失精度
    iOS消息转发流程
  • 原文地址:https://blog.csdn.net/m0_51601105/article/details/126770979