src/main/java/com/hx/util/JwtTool.java
@@ -1,5 +1,6 @@ package com.hx.util; import java.util.Base64; import java.util.Date; import javax.crypto.SecretKey; @@ -71,7 +72,7 @@ } public static SecretKey generalKey() { byte[] encodedKey = BASE64.decryptBASE64(JwtConstant.JWT_SECERT); byte[] encodedKey = Base64.getDecoder().decode(JwtConstant.JWT_SECERT); SecretKey key = new SecretKeySpec(encodedKey, 0, encodedKey.length, "AES"); return key; }