【程序源代碼】SpringBoot和Vue前后端分離后臺管理系統(tǒng)
“?關鍵字:?前后端??”?
介紹
使用最前沿的前后臺技術棧SpringBoot和Vue,SpringBoot和Vue前后端分離后臺管理系統(tǒng)。
? ? ? 核心技術
前置條件:
1、java版本1.8+(含1.8)
2、Mysql 5.7+(含5.7)
3、Redis
4、Maven
5、idea 、eclipse 必須安裝lombok
6、nodejs
7、npm
8、vscode、webstor
2 啟動后端
2.1 執(zhí)行Sql腳本(Mysql5.7+)
Sql腳本:/smart-admin-service/smart-admin-api/src/main/resources/sql
先執(zhí)行 smart-admin.sql
再執(zhí)行 quartz_mysql_2.3.0.sql
2.2 啟動Redis
如果有redis環(huán)境,可以直接忽略,如果沒有,請安裝:
2.3 將后端項目導入idea或者eclipse (java8+)
將smart-admin-service 項目導入到idea或者eclipse中(以maven項目導入!)
2.4 修改配置文件
進入 smart-admin-api 項目,打開src/main/resources/dev/application.properties文件
(1)修改jdbc參數(shù),改為你的mysql地址和賬號
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/smart-admin-dev?autoReconnect=true&useServerPreparedStmts=false&rewriteBatchedStatements=true&characterEncoding=UTF-8&useSSL=false&allowMultiQueries=true&serverTimezone=UTC
spring.datasource.username=erp
spring.datasource.password=listen1015
(2)修改redis參數(shù)
spring.redis.database=1
spring.redis.host=127.0.0.1
spring.redis.jedis.pool.max-active=100
spring.redis.jedis.pool.min-idle=5
spring.redis.jedis.pool.max-idle=10
spring.redis.jedis.pool.max-wait=30000ms
spring.redis.port=6379
spring.redis.timeout=10000ms
spring.redis.password=
2.5 啟動
啟動前:檢查redis和mysql沒問題,sql腳本執(zhí)行成功,jdbc和redis配置參數(shù)正確
找到SmartAdminApplication啟動類,運行。
訪問:http://localhost:10086/smart-admin-api/swagger-ui.html 能看到swagger文檔
到此,后端啟動成功!
3 啟動前端
啟動前,確保nodejs版本和npm版本支持 vue2.x
3.1 安裝依賴
命令行 進入/smart-admin-web,執(zhí)行npm install命令,安裝依賴
3.2 啟動local環(huán)境
安裝依賴后,在/smart-admin-web目錄,命令行執(zhí)行 npm run local
3.3 訪問
訪問 http://localhost:8080 , 賬號:sa/123456
02
—
源碼下載
gitee:?https://gitee.com/lab1024/smart-admin
聯(lián)
方
式
公眾號ID:??itcode
視頻號:? 程序源代碼
微信ID:??itcoder
免
聲
明
—————————————
?????
?????
?????
?????
?????
?
?????
?????
?????
?????
?????
———————

————————
【你的每一份打賞就是對我最真誠的鼓勵】
