PIG

基于 Spring Cloud 2022 、Spring Boot 3.1、 OAuth2 的 RBAC 权限管理系统。『RBAC Privilege Management System based on Spring Cloud 2022, Spring Boot 3.1, OAuth2』

Github stars Tracking Chart

核心依赖

依赖 版本
Spring Boot 3.1.2
Spring Cloud 2022.0.4
Spring Cloud Alibaba 2022.0.0.0
Spring Authorization Server 1.1.1
Mybatis Plus 3.5.3.1
hutool 5.8.21

模块说明

pig-ui  -- https://gitee.com/log4j/pig-ui

pig
├── pig-auth -- 授权服务提供[3000]
└── pig-common -- 系统公共模块
     ├── pig-common-bom -- 全局依赖管理控制
     ├── pig-common-core -- 公共工具类核心包
     ├── pig-common-datasource -- 动态数据源包
     ├── pig-common-job -- xxl-job 封装
     ├── pig-common-log -- 日志服务
     ├── pig-common-mybatis -- mybatis 扩展封装
     ├── pig-common-seata -- 分布式事务
     ├── pig-common-security -- 安全工具类
     ├── pig-common-swagger -- 接口文档
     ├── pig-common-feign -- feign 扩展封装
     └── pig-common-xss -- xss 安全封装
├── 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 提供了详细的部署文档 wiki.pigx.vip,包括开发环境安装、服务端代码运行、前端代码运行等。

请务必完全按照文档部署运行章节 进行操作,减少踩坑弯路!!

定制自己微服务

PIG DIY

PIG ARCHETYPE

Docker 运行

# 下载并运行服务端代码
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


cnpm install && cnpm run build:docker && cd docker && docker-compose up -d

免费公开课

开源共建

开源协议

pig 开源软件遵循 Apache 2.0 协议
允许商业使用,但务必保留类作者、Copyright 信息。

其他说明

  1. 欢迎提交 PR,注意对应提交对应 dev 分支
    代码规范 spring-javaformat

    1. 由于 spring-javaformat
      强制所有代码按照指定格式排版,未按此要求提交的代码将不能通过合并(打包)
    2. 如果使用 IntelliJ IDEA
      开发,请安装自动格式化软件
      spring-javaformat-intellij-idea-plugin
    3. 其他开发工具,请参考 spring-javaformat
      说明,或提交代码前在项目根目录运行下列命令(需要开发者电脑支持mvn命令)进行代码格式化
      mvn spring-javaformat:apply
      
  2. 欢迎提交 issue,请写清楚遇到问题的原因、开发环境、复显步骤。

  3. 联系作者 pig4cloud@qq.com

Main metrics

Overview
Name With Ownerpig-mesh/pig
Primary LanguageJava
Program language (Language Count: 4)
Platform
License:Apache License 2.0
所有者活动
Created At2019-08-26 03:24:53
Pushed At2025-06-05 09:38:49
Last Commit At2025-04-24 15:29:11
Release Count26
Last Release Name3.8.2 (Posted on )
First Release Namev1.1.6 (Posted on )
用户参与
Stargazers Count6.3k
Watchers Count95
Fork Count1k
Commits Count1.9k
Has Issues Enabled
Issues Count872
Issue Open Count287
Pull Requests Count201
Pull Requests Open Count2
Pull Requests Close Count98
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private