疯狂的狮子li
2021-05-29 06513446a0a4a993d17e7bb8085f7bf7dfb4597c
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
package com.ruoyi.framework.config.properties;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
@Data
@Component
@ConfigurationProperties(prefix = "token")
public class TokenProperties {
 
    /**
     * 令牌自定义标识
     */
    private String header;
 
    /**
     * 令牌秘钥
     */
    private String secret;
 
    /**
     * 令牌有效期(默认30分钟)
     */
    private int expireTime;
}