mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-03 02:36:39 +08:00
commit
d6a4e6715c
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user