# coummity
**Repository Path**: didi1212/coummity
## Basic Information
- **Project Name**: coummity
- **Description**: Learn
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-05-21
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
#Spring项目登录流程:
用户请求登录,跳转github登录,callback携带code
后台通过code访问 https://github.com/login/oauth/access_token
获得accessToken
携带accessToken访问userapi然后获得返回的用户信息
---
19.11.14
集成H2数据库
---
19.11.22
实现持久化登录状态获取
登录成功后,写入cookie( response.addCookie(new Cookie("token",token));),访问IndexController时,获得cookie,是否存在token,token是否存在数据库中
---