mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
32 lines
554 B
Java
32 lines
554 B
Java
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;
|
||
}
|