ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~ String token = "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxMTEiLCJzdWIiOiJhYWEiLCJpYXQiOjE1NjAwNjM4OTUsImV4cCI6MTU2MDA2Mzk1NX0.Lov4W81Agh5-Cs5mtXNPMo8VXPqsb72uEBf41MZSLjg"; Claims claims = Jwts.parser().setSigningKey("snsnsnsnsnsnsnsn") .parseClaimsJws(token) .getBody(); System.out.println(claims.getId()); System.out.println(claims.getSubject()); System.out.println(claims.getIssuedAt()); System.out.println(claims.getExpiration()); ~~~