运行环境: 最好是java jdk 1.8,我在这个平台上运行的。其他版本理论上也可以。
IDE环境: Eclipse,Myeclipse,IDEA或者Spring Tool Suite都可以,如果编译器的版本太低,需要升级下编译器,不要弄太低的版本
tomcat服务器环境: Tomcat 7.x,8.x,9.x版本均可
操作系统环境: Windows XP/7/8//8.1/10/11或者Linux或者MacOS,2G内存以上,推荐4G,4G以上更好
主要功能说明: 管理员角色包含以下功能:管理员登录,销售统计,商品分类统计,发布公告,公告管理,订单管理,图书管理,添加图书,评论管理,用户管理等功能。
用户角色包含以下功能:用户注册和登录,搜索图书,收藏图书加入购物车,查看购物车,提交订单,查看我的订单,查看收藏,已购图书,个人信息修改等功能。
用了技术框架: HTML+CSS+JavaScript+jsp+mysql+Spring
所用的数据库: Mysql数据库,任意版本均可,也可使用各种数据库工具,例如Navicat等。
——————————————————————————————————————————
运行的截图如下(点击可以放大):
Spring图书销售管理系统-用户角色-用户注册和登录↓↓
#### Spring图书销售管理系统-用户角色-搜索图书↓↓
#### Spring图书销售管理系统-用户角色-收藏图书加入购物车↓↓
#### Spring图书销售管理系统-用户角色-查看购物车↓↓
#### Spring图书销售管理系统-用户角色-提交订单↓↓
#### Spring图书销售管理系统-用户角色-查看我的订单↓↓
#### Spring图书销售管理系统-用户角色-查看收藏↓↓
#### Spring图书销售管理系统-用户角色-已购图书↓↓
#### Spring图书销售管理系统-用户角色-个人信息修改↓↓
#### Spring图书销售管理系统-管理员角色-管理员登录↓↓
#### Spring图书销售管理系统-管理员角色-销售统计↓↓
#### Spring图书销售管理系统-管理员角色-商品分类统计↓↓
#### Spring图书销售管理系统-管理员角色-发布公告↓↓
#### Spring图书销售管理系统-管理员角色-公告管理↓↓
#### Spring图书销售管理系统-管理员角色-订单管理↓↓
#### Spring图书销售管理系统-管理员角色-图书管理↓↓
#### Spring图书销售管理系统-管理员角色-添加图书↓↓
#### Spring图书销售管理系统-管理员角色-评论管理↓↓
#### Spring图书销售管理系统-管理员角色-用户管理↓↓
数据库设计文档
数据库名:spring_bookshop
文档版本:粗写版
文档版本:粗写版
序号 | 表名 | 说明 |
1 | address | |
2 | book | |
3 | booktype | |
4 | collect_book | |
5 | comment | |
6 | notice | |
7 | orderitem | |
8 | order_table | |
9 | position | |
10 | user |
返回目录
表名:address
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | aid | int | 10 | 0 | N | Y | ||
2 | addrDetail | varchar | 60 | 0 | Y | N | NULL | |
3 | city | varchar | 8 | 0 | Y | N | NULL | |
4 | consignee | varchar | 30 | 0 | Y | N | NULL | |
5 | flag | varchar | 2 | 0 | Y | N | NULL | |
6 | mobile | varchar | 15 | 0 | Y | N | NULL | |
7 | province | varchar | 8 | 0 | Y | N | NULL | |
8 | region | varchar | 8 | 0 | Y | N | NULL | |
9 | telephone | varchar | 15 | 0 | Y | N | NULL | |
10 | zipCode | varchar | 20 | 0 | Y | N | NULL | |
11 | uid | int | 10 | 0 | Y | N | NULL |
返回目录
表名:book
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | bid | int | 10 | 0 | N | Y | ||
2 | author | varchar | 20 | 0 | Y | N | NULL | |
3 | bname | varchar | 20 | 0 | N | N | ||
4 | bookInfo | longtext | 2147483647 | 0 | Y | N | NULL | |
5 | collect_count | int | 10 | 0 | Y | N | NULL | |
6 | commentCount | int | 10 | 0 | Y | N | NULL | |
7 | image | varchar | 30 | 0 | Y | N | NULL | |
8 | inventoryCount | int | 10 | 0 | Y | N | NULL | |
9 | online | int | 10 | 0 | Y | N | NULL | |
10 | price | float | 13 | 0 | N | N | ||
11 | publishCompany | varchar | 30 | 0 | Y | N | NULL | |
12 | publishDate | varchar | 10 | 0 | Y | N | NULL | |
13 | recommend | int | 10 | 0 | Y | N | NULL | |
14 | saleCount | int | 10 | 0 | Y | N | NULL | |
15 | typeid | int | 10 | 0 | N | N |
返回目录
表名:booktype
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | typeid | int | 10 | 0 | N | Y | ||
2 | btype | varchar | 20 | 0 | Y | N | NULL | |
3 | stype | varchar | 20 | 0 | Y | N | NULL |
返回目录
表名:collect_book
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | bid | int | 10 | 0 | N | Y | ||
2 | uid | int | 10 | 0 | N | Y |
返回目录
表名:comment
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | cid | int | 10 | 0 | N | Y | ||
2 | bdate | varchar | 20 | 0 | Y | N | NULL | |
3 | content | varchar | 250 | 0 | N | N | ||
4 | pdate | varchar | 20 | 0 | Y | N | NULL | |
5 | bid | int | 10 | 0 | N | N | ||
6 | uid | int | 10 | 0 | N | N |
返回目录
表名:notice
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | nid | int | 10 | 0 | N | Y | ||
2 | n_content | varchar | 250 | 0 | N | N | ||
3 | n_time | varchar | 20 | 0 | N | N |
返回目录
表名:orderitem
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | item_id | int | 10 | 0 | N | Y | ||
2 | amount | int | 10 | 0 | Y | N | NULL | |
3 | product_name | varchar | 20 | 0 | Y | N | NULL | |
4 | product_price | float | 13 | 0 | Y | N | NULL | |
5 | product_id | int | 10 | 0 | Y | N | NULL | |
6 | order_id | int | 10 | 0 | Y | N | NULL |
返回目录
表名:order_table
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | order_id | int | 10 | 0 | N | Y | ||
2 | create_date | varchar | 50 | 0 | Y | N | NULL | |
3 | deliver_fee | float | 13 | 0 | Y | N | NULL | |
4 | deliver_way | int | 10 | 0 | Y | N | NULL | |
5 | note | varchar | 50 | 0 | Y | N | NULL | |
6 | order_status | int | 10 | 0 | Y | N | NULL | |
7 | payablefee | float | 13 | 0 | Y | N | NULL | |
8 | payment_way | int | 10 | 0 | Y | N | NULL | |
9 | product_price | float | 13 | 0 | Y | N | NULL | |
10 | total_price | float | 13 | 0 | Y | N | NULL | |
11 | address_id | int | 10 | 0 | N | N | ||
12 | buy_id | int | 10 | 0 | N | N |
返回目录
表名:position
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | p_id | int | 10 | 0 | N | Y | ||
2 | p_name | varchar | 255 | 0 | Y | N | NULL | 岗位名称 |
3 | dept_id | int | 10 | 0 | Y | N | NULL | 专业id |
返回目录
表名:user
说明:
数据列:
序号 | 名称 | 数据类型 | 长度 | 小数位 | 允许空值 | 主键 | 默认值 | 说明 |
1 | uid | int | 10 | 0 | N | Y | ||
2 | account | varchar | 20 | 0 | N | N | ||
3 | message_count | int | 10 | 0 | Y | N | NULL | |
4 | nickname | varchar | 30 | 0 | N | N | ||
5 | password | varchar | 50 | 0 | N | N | ||
6 | photo | varchar | 30 | 0 | Y | N | NULL | |
7 | points_count | int | 10 | 0 | Y | N | NULL | |
8 | status | int | 10 | 0 | Y | N | NULL | |
9 | type | varchar | 8 | 0 | Y | N | NULL |