com.biz.web.token.TokenProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biz-all Show documentation
Show all versions of biz-all Show documentation
BizX 是一个灵活而高效的业务开发框架, 其中也有很多为业务开发所需要的工具类的提供。
The newest version!
package com.biz.web.token;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
/**
* Token 配置实体
*
* @author francis
* @since 2023-04-22 13:15
**/
@Setter
@Getter
@ToString
@Configuration
@PropertySource(value = "classpath:application.properties", ignoreResourceNotFound = true)
public class TokenProperties {
/**
* Token 有效时间
* 默认一小时
*/
@Value("${biz.token.expire:3600000}")
private Long expire;
}