|
@@ -9,6 +9,7 @@ import io.jsonwebtoken.JwtBuilder;
|
|
|
import io.jsonwebtoken.Jwts;
|
|
|
import io.jsonwebtoken.SignatureAlgorithm;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.junit.Test;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.util.Assert;
|
|
@@ -16,7 +17,7 @@ import org.springframework.util.Assert;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.*;
|
|
|
|
|
|
-@Log4j2
|
|
|
+@Slf4j
|
|
|
public class JwtUtil {
|
|
|
|
|
|
//生成签名的时候使用的秘钥secret
|