大家好,我是仁傑,今天給大家分享一款快速開發腳手架,可以快速搭建企業級背景管理系統,同時還提供了多種便捷starter進行功能擴充。
介紹
快速搭建企業級背景管理系統,主要功能包括前背景使用者分離、菜單權限、資料權限、定時任務、通路日志、異常日志、統一異常處理、XSS過濾、SQL注入,國際化等多種功能。
預覽
登入頁面
代碼生成
模版管理
系統使用者
字典管理
公告管理
國際化資訊
模版元件
項目源碼
子產品
主要功能有:資料權限控制、國際化功能、注解使用、支付功能、對象存儲封裝等。目前提供的功能子產品清單。
|-- ballcat-common -- 基礎公用元件
| |-- ballcat-common-core -- 核心元件
| |-- ballcat-common-desensitize -- 脫敏基礎元件
| |-- ballcat-common-i18n -- 國際化基礎元件
| |-- ballcat-common-idempoten -- 幂等基礎元件
| |-- ballcat-common-log -- 日志基礎元件
| |-- ballcat-common-model -- 公用的一些模型
| |-- ballcat-common-redis -- redis基礎元件
| |-- ballcat-common-security -- 安全相關,以及資源伺服器配置
| |-- ballcat-common-util -- 公用的工具
| `-- ballcat-common-websocket -- 對于 spring websocket 的一些抽象封裝
|-- ballcat-dependencies -- ballcat項目本身各子子產品的依賴管理,以及第三方子產品的依賴管理
|-- ballcat-extends -- 擴充子產品,大多是對于一些第三方元件的擴充處理
| |-- ballcat-extend-dingtalk -- 釘釘的一些操作封裝
| |-- ballcat-extend-kafka -- kafka 的一些操作擴充
| |-- ballcat-extend-kafka-stream -- kafka 流處理的一些操作擴充
| |-- ballcat-extend-mybatis-plus -- 基于 mybatis-plus 相關的一些擴充
| |-- ballcat-extend-openapi -- 對 springdoc-openapi 的一點封裝擴充
| |-- ballcat-extend-pay-ali -- 針對支付寶支付的一些操作封裝
| |-- ballcat-extend-pay-virtual -- 針對虛拟貨币支付的一些操作封裝
| |-- ballcat-extend-pay-wx -- 針對微信支付的一些操作封裝
| |-- ballcat-extend-redis-module -- redis module 的擴充功能(暫時隻有布隆過濾器)
| `-- ballcat-extend-tesseract -- 對 OCR 文字識别工具的一個操作封裝
|-- ballcat-starters -- Spring Boot快速啟動器
| |-- ballcat-spring-boot-starter-datascope -- 資料權限控制
| |-- ballcat-spring-boot-starter-dingtalk -- 釘釘內建工具
| |-- ballcat-spring-boot-starter-easyexcel -- 通過注解快速導入導出excle(easyexcel)
| |-- ballcat-spring-boot-starter-file -- 檔案上傳 FTP or Local
| |-- ballcat-spring-boot-starter-i18n -- 國際化方案
| |-- ballcat-spring-boot-starter-idempotent -- 幂等處理方案
| |-- ballcat-spring-boot-starter-ip2region -- 離線IP查詢方案
| |-- ballcat-spring-boot-starter-job -- 定時任務內建(目前僅xxl-job)
| |-- ballcat-spring-boot-starter-kafka -- 消息隊列 kafka 內建
| |-- ballcat-spring-boot-starter-log -- 通路日志,記錄檔,TraceId注入
| |-- ballcat-spring-boot-starter-mail -- 郵件發送
| |-- ballcat-spring-boot-starter-oss -- 對象存儲(所有支援 AWS S3 協定的雲存儲,如阿裡雲,七牛雲,騰訊雲)
| |-- ballcat-spring-boot-starter-pay -- 支付相關
| |-- ballcat-spring-boot-starter-redis -- 提供注解使用 redis, 分布式鎖,防擊穿,全局key字首等功能
| |-- ballcat-spring-boot-starter-sms -- 短信接入 starter
| |-- ballcat-spring-boot-starter-swagger -- swagger文檔配置(提供無注冊中心的文檔聚合方案)
| |-- ballcat-spring-boot-starter-web -- Web工程封裝
| |-- ballcat-spring-boot-starter-websocket -- 基于 common-websocket 的自動配置
| `-- ballcat-spring-boot-starter-xss -- xss 防注入相關
部署
資料庫配置
# 資料庫建庫語句
scheme.sql
# 資料庫核心語句
ballcat.sql
# 國際化相關sql,無需國際化則不需要執行
ballcat-i18n.sql
背景編譯
# 下載下傳模版倉庫項目代碼
git clone https://github.com/ballcat-projects/ballcat-boot.git
或
git clone https://github.com/ballcat-projects/ballcat-samples.git
# 本地啟動
直接在開發工具中啟動 SpringBoot 的啟動類 AdminApplication 即可
前端編譯
# 下載下傳代碼
git clone https://github.com/ballcat-projects/ballcat-ui-vue.git
# 安裝依賴
yarn install 或 npm install
# 啟動項目
yarn serve 或 npm run serve
通路位址
預設前端項目路徑:http://localhost:8000/
預設使用者名密碼:admin / a123456
注意檢查前端的 vue.config.js 中的 serverAddress 屬性,需要改為對應的服務端位址,如 http://ballcat-admin:8080
總結
項目提供了一系列的基礎能力,友善使用者根據項目需求快速進行功能拓展。将自身所有的業務和功能都設計為可插拔的依賴,友善使用者自由組裝和解除安裝。