新增登录安全属性
This commit is contained in:
parent
8d5a537462
commit
d20aa616e8
|
@ -0,0 +1,25 @@
|
||||||
|
package net.maku.framework.security.properties;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 安全配置项
|
||||||
|
*
|
||||||
|
* @author 阿沐 babamu@126.com
|
||||||
|
* <a href="https://maku.net">MAKU</a>
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Configuration
|
||||||
|
@ConfigurationProperties(prefix = "maku.security")
|
||||||
|
public class SecurityProperties {
|
||||||
|
/**
|
||||||
|
* accessToken 过期时间(单位:秒),默认2小时
|
||||||
|
*/
|
||||||
|
private int accessTokenExpire = 60 * 60 * 2;
|
||||||
|
/**
|
||||||
|
* refreshToken 过期时间(单位:秒),默认14天
|
||||||
|
*/
|
||||||
|
private int refreshTokenExpire = 60 * 60 * 24 * 14;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user