- 基于 Spring Cloud Hoxton 、Spring Boot 2.3、 OAuth2 的 RBAC 权限管理系统
- 基于数据驱动视图的理念封装 element-ui,即使没有 vue 的使用经验也能快速上手
- 提供对常见容器化支持 Docker、Kubernetes、Rancher2 支持
- 提供 lambda 、stream api 、webflux 的生产实践
| 依赖 | 版本 |
|---|---|
| Spring Boot | 2.3.6.RELEASE |
| Spring Cloud | Hoxton.SR9 |
| Spring Cloud Alibaba | 2.2.3.RELEASE |
| Spring Security OAuth2 | 2.3.6 |
| Mybatis Plus | 3.4.1 |
| hutool | 5.5.1 |
| Avue | 2.6.16 |
pig-ui -- https://gitee.com/log4j/pig-ui pig ├── pig-auth -- 授权服务提供[3000] └── pig-common -- 系统公共模块 ├── pig-common-core -- 公共工具类核心包 ├── pig-common-datasource -- 动态数据源包 ├── pig-common-job -- xxl-job 封装 ├── pig-common-log -- 日志服务 ├── pig-common-mybatis -- mybatis 扩展封装 ├── pig-common-security -- 安全工具类 ├── pig-common-swagger -- 接口文档 ├── pig-common-sentinel -- sentinel 扩展封装 └── pig-common-test -- oauth2.0 单元测试扩展封装 ├── pig-register -- Nacos Server[8848] ├── pig-gateway -- Spring Cloud Gateway网关[9999] └── pig-upms -- 通用用户权限管理模块 └── pig-upms-api -- 通用用户权限管理系统公共api模块 └── pig-upms-biz -- 通用用户权限管理系统业务处理模块[4000] └── pig-visual └── pig-monitor -- 服务监控 [5001] ├── pig-codegen -- 图形化代码生成 [5002] ├── pig-sentinel-dashboard -- 流量高可用 [5003] └── pig-xxl-job-admin -- 分布式定时任务管理台 [5004]
pig 提供了详细的部署文档 doc.pig4cloud.com,包括开发环境安装、服务端代码运行、前端代码运行等。
请务必完全按照文档部署运行章节 进行操作,减少踩坑弯路!!
# 下载并运行服务端代码
git clone https://gitee.com/log4j/pig.git
cd pig && mvn clean install && docker-compose up -d
# 下载并运行前端UI
git clone https://gitee.com/log4j/pig-ui.git
cd pig-ui && npm install -g cnpm --registry=https://registry.npm.taobao.org
npm run build:docker && docker-compose up -d
<!-- pig-gen archetype --> # 在空文件夹执行以下命令,注意 windows 下 \ 修改成 ^ mvn archetype:generate \ -DgroupId=com.pig4cloud \ -DartifactId=demo \ -Dversion=1.0.0-SNAPSHOT \ -Dpackage=com.pig4cloud.pig.demo \ -DarchetypeGroupId=com.pig4cloud.archetype \ -DarchetypeArtifactId=pig-gen \ -DarchetypeVersion=2.10.3 \ -DarchetypeCatalog=local
pig 开源软件遵循 Apache 2.0 协议。 允许商业使用,但务必保留类作者、Copyright 信息。
-
欢迎提交 PR,注意对应提交对应
dev分支 -
欢迎提交 issue,请写清楚遇到问题的原因、开发环境、复显步骤。
-
联系作者 [email protected]