mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-26 18:49:01 +08:00
将所有策略声明抽离为单独的函数式接口
This commit is contained in:
@@ -51,7 +51,7 @@ public class SaTokenConfigure {
|
||||
@Autowired
|
||||
public void rewriteSaStrategy() {
|
||||
// 重写 Token 生成策略
|
||||
SaStrategy.me.createToken = (loginId, loginType) -> {
|
||||
SaStrategy.instance.createToken = (loginId, loginType) -> {
|
||||
return SaFoxUtil.getRandomString(60); // 随机60位长度字符串
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user