mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-18 03:16:40 +08:00
v3.11.0 【优化】SaTokenConfig与三级等保配置关联;【优化】smart-app去掉无用请求;
This commit is contained in:
commit
69ea81b020
@ -0,0 +1,22 @@
|
|||||||
|
package net.lab1024.sa.base.config;
|
||||||
|
|
||||||
|
import cn.dev33.satoken.config.SaTokenConfig;
|
||||||
|
import net.lab1024.sa.base.module.support.securityprotect.service.Level3ProtectConfigService;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
public class TokenConfig {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private Level3ProtectConfigService level3ProtectConfigService;
|
||||||
|
|
||||||
|
// 此配置会覆盖 sa-base.yaml 中的配置
|
||||||
|
@Resource
|
||||||
|
public void configSaToken(SaTokenConfig config) {
|
||||||
|
|
||||||
|
config.setActiveTimeout(level3ProtectConfigService.getLoginActiveTimeoutSeconds());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user