说JWT已经过期 但是从哪里来改这个过期时间啊

io.jsonwebtoken.ExpiredJwtException: JWT expired at 2018-10-05T11:47:04Z. Current time: 2018-11-13T14:40:42Z, a difference of 3380018872 milliseconds. Allowed clock skew: 0 milliseconds.

JWT的token的过期时间是在生成token的时候设置的,无法修改,要修改只能在生成token的时候修改:

// 过期时间,单位毫秒
private static final long EXPIRE_TIME = 7*24*3600*1000;
// 生成过期时间
Date date = new Date(System.currentTimeMillis()+EXPIRE_TIME);
//  生成token     
JWT.create().withClaim("userId", userId).withExpiresAt(date).sign(algorithm);