com.codingapi.springboot.security.redis.SecurityRedisProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springboot-starter-security Show documentation
Show all versions of springboot-starter-security Show documentation
springboot-starter-security project for Spring Boot
package com.codingapi.springboot.security.redis;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class SecurityRedisProperties {
/**
* 是否启用redis
*/
private boolean enable = true;
/**
* 15分钟有效期 1000*60*15=900000
*/
private int validTime = 900000;
/**
* 10分钟后更换令牌 1000*60*10=600000
*/
private int restTime = 600000;
}