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
| package com.ruoyi.common.properties;
|
| import lombok.Data;
| import org.springframework.boot.context.properties.ConfigurationProperties;
| import org.springframework.stereotype.Component;
|
| /**
| * token 配置属性
| *
| * @author Lion Li
| */
| @Data
| @Component
| @ConfigurationProperties(prefix = "token")
| public class TokenProperties {
|
| /**
| * 令牌自定义标识
| */
| private String header;
|
| /**
| * 令牌秘钥
| */
| private String secret;
|
| /**
| * 令牌有效期(默认30分钟)
| */
| private int expireTime;
| }
|
|