xuefei
2020-12-12 160487aedf89e2aea61f043c7a5c3d211ed19798
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package cn.cetc54.platform.core.config.properties;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
/**
 * @author
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "platform.token")
public class PlatformTokenProperties {
 
    /**
     * 使用redis存储token
     */
    private Boolean redis = true;
 
    /**
     * 单设备登陆
     */
    private Boolean sdl = true;
 
    /**
     * 存储权限数据
     */
    private Boolean storePerms = true;
 
    /**
     * token默认过期时间
     */
    private Integer tokenExpireTime = 30;
 
    /**
     * 用户选择保存登录状态对应token过期时间(天)
     */
    private Integer saveLoginTime = 7;
 
    /**
     * 限制用户登陆错误次数(次)
     */
    private Integer loginTimeLimit = 10;
 
    /**
     * 错误超过次数后多少分钟后才能继续登录(分钟)
     */
    private Integer loginAfterTime = 10;
}