update ruoyi-framework/src/main/java/com/ruoyi/framework/config/ShiroConfig.java.

java doc
master
Hacker 4 years ago committed by Limy
parent 4cb5acb60e
commit 290fe0ee9d

@ -45,55 +45,81 @@ public class ShiroConfig
{
public static final String PREMISSION_STRING = "perms[\"{0}\"]";
// Session超时时间单位为毫秒默认30分钟
/**
* Session30
*/
@Value("${shiro.session.expireTime}")
private int expireTime;
// 相隔多久检查一次session的有效性单位毫秒默认就是10分钟
/**
* session10
*/
@Value("${shiro.session.validationInterval}")
private int validationInterval;
// 同一个用户最大会话数
/**
*
*/
@Value("${shiro.session.maxSession}")
private int maxSession;
// 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
/**
* /
*/
@Value("${shiro.session.kickoutAfter}")
private boolean kickoutAfter;
// 验证码开关
/**
*
*/
@Value("${shiro.user.captchaEnabled}")
private boolean captchaEnabled;
// 验证码类型
/**
*
*/
@Value("${shiro.user.captchaType}")
private String captchaType;
// 设置Cookie的域名
/**
* Cookie
*/
@Value("${shiro.cookie.domain}")
private String domain;
// 设置cookie的有效访问路径
/**
* cookie访
*/
@Value("${shiro.cookie.path}")
private String path;
// 设置HttpOnly属性
/**
* HttpOnly
*/
@Value("${shiro.cookie.httpOnly}")
private boolean httpOnly;
// 设置Cookie的过期时间秒为单位
/**
* Cookie
*/
@Value("${shiro.cookie.maxAge}")
private int maxAge;
// 设置cipherKey密钥
/**
* cipherKey
*/
@Value("${shiro.cookie.cipherKey}")
private String cipherKey;
// 登录地址
/**
*
*/
@Value("${shiro.user.loginUrl}")
private String loginUrl;
// 权限认证失败地址
/**
*
*/
@Value("${shiro.user.unauthorizedUrl}")
private String unauthorizedUrl;

Loading…
Cancel
Save