satoken配置
This commit is contained in:
parent
462b62b524
commit
2e6fc7c4b3
|
|
@ -34,6 +34,8 @@ public class SaTokenConfigure implements WebMvcConfigurer {
|
|||
// 小程序配置
|
||||
SaTokenConfig userConfig = new SaTokenConfig();
|
||||
userConfig.setTokenName("token");
|
||||
userConfig.setIsConcurrent(true);
|
||||
userConfig.setIsShare(false);
|
||||
// config2.setTimeout(2000);
|
||||
userConfig.setTokenStyle("simple-uuid");
|
||||
StpKit.USER.setConfig(userConfig);
|
||||
|
|
|
|||
Loading…
Reference in New Issue