# spring-gateway **Repository Path**: leoii/spring-gateway ## Basic Information - **Project Name**: spring-gateway - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-04 - **Last Updated**: 2025-03-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Build Status Coverage Status Downloads

## 系统说明 - 基于 Spring Cloud 2021 、Spring Boot 2.7、 OAuth2 的 RBAC **权限管理系统** - 基于数据驱动视图的理念封装 element-ui,即使没有 vue 的使用经验也能快速上手 - 提供对常见容器化支持 Docker、Kubernetes、Rancher2 支持 - 提供 lambda 、stream api 、webflux 的生产实践 ## 访问地址 - swagger访问地址:http://fish-gateway:9999/swagger-ui.html 用户名 密码 :admin / admin - nacos访问地址:http://localhost:8848/nacos 默认密码 nacos / nacos - 分布式任务调度配置:http://fish-job:5004/xxl-job-admin/ admin/123456 - 服务监控: http://localhost:5001/login pig / pig - 授权码模式:http://localhost:3000/oauth2/authorize?client_id=pig&response_type=code&redirect_uri=https://www.baidu.com #### 本地host配置: | host配置代理 | | ----------------------| | 127.0.0.1 fish-mysql | 127.0.0.1 fish-redis | 127.0.0.1 fish-gateway | 127.0.0.1 fish-register | 127.0.0.1 fish-sentinel | 127.0.0.1 fish-monitor | 127.0.0.1 fish-job | 127.0.0.1 fish-seata ## 快速开始 ### 核心依赖 | 依赖 | 版本 | | ---------------------- |------------| | Spring Boot | 2.7.0 | | Spring Cloud | 2021.0.1 | | Spring Cloud Alibaba | 2021.0.1.0 | | Spring Security OAuth2 | 2.3.6 | | Mybatis Plus | 3.5.1 | | hutool | 5.8.0 | | Avue | 2.6.18 | ### 模块说明 ```lua fish-ui -- https://gitee.com/log4j/pig-ui fish ├── auth -- 授权服务提供[3000] └── common -- 系统公共模块 ├── common-bom -- 全局依赖管理控制 ├── common-core -- 公共工具类核心包 ├── common-datasource -- 动态数据源包 ├── common-job -- xxl-job 封装 ├── common-log -- 日志服务 ├── common-mybatis -- mybatis 扩展封装 ├── common-seata -- 分布式事务 ├── common-security -- 安全工具类 ├── common-swagger -- 接口文档 ├── common-feign -- feign 扩展封装 └── common-test -- 单元测试扩展封装 ├── register -- Nacos Server[8848] ├── gateway -- Spring Cloud Gateway网关[9999] └── upms -- 通用用户权限管理模块 └── upms-api -- 通用用户权限管理系统公共api模块 └── upms-biz -- 通用用户权限管理系统业务处理模块[4000] └── visual └── monitor -- 服务监控 [5001] ├── codegen -- 图形化代码生成 [5002] ├── entinel-dashboard -- 流量高可用 [5003] └── xxl-job-admin -- 分布式定时任务管理台 [5004] ``` ### 本地开发 运行 pig 提供了详细的[部署文档 wiki.pig4cloud.com](https://www.yuque.com/pig4cloud/pig/vsdox9),包括开发环境安装、服务端代码运行、前端代码运行等。 请务必**完全按照**文档部署运行章节 进行操作,减少踩坑弯路!! ### 定制自己微服务 [PIG DIY](https://diy.pig4cloud.com) [PIG ARCHETYPE](https://archetype.pig4cloud.com) ### 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 # 部署 在根目录执行 docker-compose build 运行镜像 docker-compose up -d ``` ## 免费公开课
## 开源共建 ### 开源协议 pig 开源软件遵循 [Apache 2.0 协议](https://www.apache.org/licenses/LICENSE-2.0.html)。 允许商业使用,但务必保留类作者、Copyright 信息。 ![](https://gitee.com/pig4cloud/oss/raw/master/2020-10-9/1602229452602-image.png) ### 其他说明 1. 欢迎提交 [PR](https://dwz.cn/2KURd5Vf),注意对应提交对应 `dev` 分支 代码规范 [spring-javaformat](https://github.com/spring-io/spring-javaformat) 2. 欢迎提交 [issue](https://gitee.com/log4j/pig/issues),请写清楚遇到问题的原因、开发环境、复显步骤。 3. 联系作者 pig4cloud@qq.com [![Stargazers over time](https://whnb.wang/img/log4j/pig?e=604800)](https://whnb.wang/log4j/pig?e=604800)