add
This commit is contained in:
@ -31,7 +31,7 @@ public class TokenUtil {
|
||||
public static String generateToken(String username) {
|
||||
DateTime now = DateTime.now();
|
||||
|
||||
Integer expireTime = 1;
|
||||
int expireTime = 1;
|
||||
if (redisService.hasKey(SecurityConstant.TOKEN_EXPIRE_TIME_KEY)) {
|
||||
expireTime = Integer.parseInt(redisService.get(SecurityConstant.TOKEN_EXPIRE_TIME_KEY).toString());
|
||||
}
|
||||
|
Reference in New Issue
Block a user