# gitee-spring-boot **Repository Path**: zhuwenjie0716/gitee-spring-boot ## Basic Information - **Project Name**: gitee-spring-boot - **Description**: Gitee的Oauth2三方登录实现 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-15 - **Last Updated**: 2025-01-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Gitee-Spring-Boot ## 项目说明 集成 Gitee 进行第三方登录的一个 demo 抽取封装了 gitee-spring-boot-starter 起步依赖 这只是一个 demo 示例,不涉及 SpringSecurity 中的 filter 配置等 ## 模块介绍 项目中共有三个模块 gitee-spring-boot-autoconfigure 自动配置模块,包含了 Gitee 获取 accessToken 的配置项 gitee-spring-boot-starter 起步依赖,只是引用了 gitee-spring-boot-autoconfigure 模块 gitee-spring-boot-test 测试模块,使用 h2 数据库,定义了用户表、用户APP关联表,实现了用户使用 Gitee 进行登录 ## 使用说明 运行 启动 gitee-spring-boot-test 中的主程序, 或自行去 [Gitee官方文档](https://gitee.com/api/v5/oauth_doc#/) 去注册一个三方应用,并把相关 配置项配置到 application.yaml 中 访问: http://localhost:9393/ 或 http://localhost:9393/index.html **若要修改端口,src/main/resources/static中几个html中的端口也需要修改** ## 参考文档 [B站视频-SpringSecurity6+oauth2+前后端分离企业级解决方案](https://www.bilibili.com/video/BV1Ux4y1E7kV)