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
| package com.vincent.rsf.server.common.config;
|
| import lombok.Data;
| import org.springframework.boot.context.properties.ConfigurationProperties;
| import org.springframework.context.annotation.Configuration;
|
| /**
| * 系统配置属性
| *
| * @author vincent
| * @since 2021-08-30 17:58:16
| */
| @Data
| @Configuration
| @ConfigurationProperties(prefix = "config")
| public class ConfigProperties {
|
| /**
| * token过期时间, 单位秒
| */
| private Long tokenExpireTime = (long) (60 * 60 * 24 * 7);
|
| /**
| * token快要过期自动刷新时间, 单位分钟
| */
| private int tokenRefreshTime = 30;
|
| /**
| * 生成token的密钥Key的base64字符
| */
| private String tokenKey;
|
| }
|
|