docs: 修复已过期的描述为最新版写法

This commit is contained in:
click33
2025-04-02 01:09:07 +08:00
parent b844312f89
commit cd964d4d9f
2 changed files with 3 additions and 3 deletions

View File

@@ -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. 其它代码...
```