update token设置成24小时
This commit is contained in:
@@ -35,7 +35,7 @@ public class JwtUtil {
|
||||
|
||||
// Token过期时间30分钟(用户登录过期时间也是30分钟,以token在reids缓存时间为准)
|
||||
//public static final long EXPIRE_TIME = 180 * 60 * 1000L;
|
||||
public static final long EXPIRE_TIME = 7 * 24 * 60 * 60 * 1000L; // 设置成七天(开发用)
|
||||
public static final long EXPIRE_TIME = 24 * 60 * 60 * 1000L; // 设置成1天(开发用)
|
||||
|
||||
private static final String USERNAME_FIELD = "username";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user