首次提交
This commit is contained in:
parent
1101681331
commit
ed171eda88
107 changed files with 1370 additions and 524 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue