!105 2022-1-25 Carl

Merge pull request !105 from Admin/sit-Carl-V3
This commit is contained in:
Admin 2022-01-25 04:28:18 +00:00 committed by Gitee
commit d6a4e6715c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -15,7 +15,7 @@ public class SmartJWTUtil {
/** /**
* 过期时间一天 * 过期时间一天
*/ */
private static final int EXPIRE_SECONDS = 1 * 24 * 3600; private static final int EXPIRE_SECONDS = 365 * 24 * 3600;
/** /**
* jwt加密字段 * jwt加密字段
*/ */
@ -78,7 +78,7 @@ public class SmartJWTUtil {
} }
public static void main(String[] args) { public static void main(String[] args) {
String token = SmartJWTUtil.generateToken("884127"); String token = SmartJWTUtil.generateToken("884159");
System.out.println(token); System.out.println(token);
System.out.println(SmartJWTUtil.decodeToken(token)); System.out.println(SmartJWTUtil.decodeToken(token));
} }