首次提交

This commit is contained in:
guotao 2026-01-09 12:20:44 +08:00
parent 1101681331
commit ed171eda88
107 changed files with 1370 additions and 524 deletions

View file

@ -14,7 +14,7 @@ import java.nio.charset.StandardCharsets;
public class JwtTokenService {
// 建议改成配置application.yml
private final String secret = "secret-key-1234567890";
private final String secret = "secret-key-123456789012345678901234567890";
private final long expireMillis = 30 * 24 * 60 * 60 * 1000L; // 30
/**
@ -33,7 +33,6 @@ public class JwtTokenService {
));
jws.setAlgorithmHeaderValue(AlgorithmIdentifiers.HMAC_SHA256);
return jws.getCompactSerialization();
}