本项目使用Gitee的OAuth模拟第三方跳转登陆,建议自己去申请一个Gitee的OAuth,这样理解代码会更深入,当然,你也可以不申请,直接用我的
申请详见官文文档: https://gitee.com/api/v5/oauth_doc#/
申请成功后,在 OAuthGiteeConst.class 中修改自己的 Client_ID 、Client_Secret 、redirect_uri
还有index.html中,也要修改自己的 client_id 、redirect_uri
使用方法:在 Main.class 中,直接运行 main 方法,然后在浏览器中输入 http://localhost:8088 即可运行项目
博客说明:https://blog.csdn.net/lendsomething/article/details/114867366