mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-26 18:49:01 +08:00
docs: 修复已过期的描述为最新版写法
This commit is contained in:
@@ -51,7 +51,7 @@ public void configOAuth2Server(SaOAuth2ServerConfig oauth2Server) {
|
||||
String access_token = ...
|
||||
|
||||
// 2. 登录时预定生成的token
|
||||
StpUtil.login(uid, SaLoginConfig.setToken(access_token));
|
||||
StpUtil.login(uid, new SaLoginParameter().setToken(access_token));
|
||||
|
||||
// 3. 其它代码...
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user