# template-parent **Repository Path**: shenzhen-shangtong-network_0/template-parent ## Basic Information - **Project Name**: template-parent - **Description**: 基于springcloudGateway、nacos以及oauth2的架构模板 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2024-01-03 - **Last Updated**: 2024-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # template-parent #### 介绍 基于springcloudGateway、nacos以及oauth2的架构模板 #### 软件架构 软件架构说明 #### 安装教程 1. 首先本地安装Nacos注册中心服务端并启动本项目注册中心端口为8848 2. 启动redis本项目使用了jetcache,在数据库中运行项目db目录下的数据库脚本 3. 首先启动service下的所有服务注册到注册中心 4. 然后启动gatewayApi获取所有的认证客户端加载到缓存中 5. 启动gatewayweb 6. 启动authorization-server,授权服务器是为了个用户获取权限 7. 启动authentication-server, 用于对客户端请求进行鉴权 #### 使用说明 1. 本项目使用springcloud Greenwich.RELEASE版本 2. 使用阿里巴巴开源的Nacos做服务注册中心 3. 使用SpringCloudGateway做网关服务 4. 使用spring security oauth2 做网关鉴权 5. 使用Feign做服务端调用 #### 截图 ![认证授权流程](./images/auth.png) ![Nacos控制台](./images/nacos.png) ![微服务架构](./images/sc-bus.png) ![认证授权流程](./images/auth1.png) ![获取权限](./images/auth2.png) ![认证通过](./images/auth3.png) 作者:蒙奇D刘大侠 链接:https://www.jianshu.com/p/c7e9e5771098 来源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)