mirror of
https://gitee.com/dromara/sa-token.git
synced 2024-12-04 21:08:22 +08:00
!19 update sa-token-doc/doc/use/many-account.md.
Merge pull request !19 from AppleOfGray/N/A
This commit is contained in:
commit
d75c91f0ab
@ -46,9 +46,9 @@
|
|||||||
public static StpLogic stpLogic = new StpLogic("user") {
|
public static StpLogic stpLogic = new StpLogic("user") {
|
||||||
// 重写 `getTokenName` 函数,返回一个与 `StpUtil` 不同的token名称, 防止冲突
|
// 重写 `getTokenName` 函数,返回一个与 `StpUtil` 不同的token名称, 防止冲突
|
||||||
@Override
|
@Override
|
||||||
public String getTokenName() {
|
public String splicingKeyTokenName() {
|
||||||
return super.getKeyTokenName() + "-user";
|
return super.splicingKeyTokenName()+"-user";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user