修改主类重复
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 1m30s

This commit is contained in:
2025-09-26 20:50:11 +08:00
parent a923c3b0f9
commit 00a4610a61
2 changed files with 9 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ public class JwtUtil {
/**
* 生成一个安全的随机密钥并打印其Base64编码字符串用于配置到配置文件中
*/
public static void main(String[] args) {
public static void BuildSecretKey() {
// 生成一个专门用于 HS512 算法的安全随机密钥
SecretKey secretKey = Keys.secretKeyFor(SignatureAlgorithm.HS512);