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

Loading…
Cancel
Save