多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
~~~ //生成token long now = System.currentTimeMillis(); long exp = now + 1000 * 60; JwtBuilder builder = Jwts.builder().setId("111") .setSubject("aaa") .setIssuedAt(new Date()) .setExpiration(new Date(exp))// 设置过期时间 .signWith(SignatureAlgorithm.HS256, "snsnsnsnsnsnsnsn"); String token = builder.compact(); ~~~