simplify code

This commit is contained in:
yangy 2020-06-07 10:06:00 +08:00
parent 8423e33dd0
commit bf74511a82
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ public class JwtTokenManager {
public String createToken(String userName) {
long now = (new Date()).getTime();
long now = System.currentTimeMillis();
Date validity;
validity = new Date(now + authConfigs.getTokenValidityInSeconds() * 1000L);

View File

@ -104,7 +104,7 @@ public class JwtTokenUtils {
/**
* Current time
*/
long now = (new Date()).getTime();
long now = System.currentTimeMillis();
/**
* Validity date
*/