# sso-demo **Repository Path**: wlx123/sso-demo ## Basic Information - **Project Name**: sso-demo - **Description**: 用springboot+jwt完成sso单点登录的demo - **Primary Language**: Java - **License**: MPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-03-04 - **Last Updated**: 2025-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # sso-demo #### 介绍 用springboot+jwt完成sso单点登录的demo #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) #### 参考文档 [掘金网:http://www.diginfo.cn/element/article/584](http://www.diginfo.cn/element/article/584) 个人和企业可以完全免费使用,无任何版权限制。 项目启动步骤: 1、启动sso主程序。 2、启动projectA的程序。 3、启动projectB的程序。 验证: 1、在浏览器中输入:http://localhost:8081/testA 然后第一因为没有登录,会跳转到登录页:http://localhost:8080/sso/login 2、输入用户名:admin,密码:123 进行登录 3、登录成功后输出:token和refreshToken 4、在浏览器中带入token输入:http://localhost:8081/testA?token=xxx 成功后会输出:输出testA 5、在浏览器中带入token输入:http://localhost:8082/testB?token=xxx 成功后会输出:输出testB 6、这样就表明sso单点登录验证成功