項目簡介
項目來源於:https://gitee.com/suimz_admin/BookShopcss
一個基於JSP+Servlet+Jdbc的書店系統。涉及技術少,易於理解,適合JavaWeb初學者學習使用。
本人親測可正常啓動。html
技術棧
前端技術
基礎:html+css+JavaScript
框架:Jquery和BootStrap前端
後端技術
jsp+servlet
數據庫:mysql 5.7.27(我的測試使用)
鏈接池:DBCP2
jdk版本:1.8.0_181(我的測試使用)
tomcat版本:8.5.34(我的測試使用)mysql
本地運行
- 下載zip直接解壓或安裝git後執行克隆命令 git clone https://gitee.com/suimz_admin/BookShop.git
- 使用eclipse或者idea打開項目,並配置jdk版本和所需jar包。項目所依賴jar包在WebContent/WEB-INF/lib文件夾下。
- MySQL數據庫新建 mybookshop 數據庫,並運行項目導入說明中的mybookshop.sql文件。
- 將項目導入說明文件夾下的context.xml移入WebContent/META-INF文件夾中,並修改該文件中的數據庫鏈接配置。
- 發佈到tomcat中,http://localhost:8080/BookShop/爲買家首頁。http://localhost:8080/BookShop/admin/爲管理員首頁。
初始帳號:admin 初始密碼:123456
注意
- 該項目未聲明mysql、jdk、tomcat使用版本,以上版本號均爲我的測試使用版本。
- 因tomcat8中內置數據庫鏈接池爲DBCP2,該項目中context.xml的配置maxActive更改maxTotal,maxWait更改成maxWaitMillis。
若使用tomcat8如下版本,則無需更改。
項目截圖
![登陸](http://static.javashuo.com/static/loading.gif)
![首頁](http://static.javashuo.com/static/loading.gif)
![搜索](http://static.javashuo.com/static/loading.gif)
![詳情](http://static.javashuo.com/static/loading.gif)
![購物車](http://static.javashuo.com/static/loading.gif)
![後臺-圖書列表](http://static.javashuo.com/static/loading.gif)
![後臺-圖書分類](http://static.javashuo.com/static/loading.gif)
聲明