From 5672867e49897634acbe2d3bc7d6831ba27b16de Mon Sep 17 00:00:00 2001 From: diaobisong Date: Thu, 25 Jan 2024 18:45:53 +0800 Subject: [PATCH] fix code --- .../com/java3y/austin/web/interceptor/TokenInterceptor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/austin-web/src/main/java/com/java3y/austin/web/interceptor/TokenInterceptor.java b/austin-web/src/main/java/com/java3y/austin/web/interceptor/TokenInterceptor.java index 40d4758..857e3b4 100644 --- a/austin-web/src/main/java/com/java3y/austin/web/interceptor/TokenInterceptor.java +++ b/austin-web/src/main/java/com/java3y/austin/web/interceptor/TokenInterceptor.java @@ -7,6 +7,7 @@ import com.java3y.austin.web.utils.JwtUtil; import io.jsonwebtoken.Claims; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Component; import org.springframework.util.ObjectUtils; import org.springframework.web.servlet.HandlerInterceptor; @@ -15,6 +16,7 @@ import javax.servlet.http.HttpServletResponse; @Slf4j +@Component public class TokenInterceptor implements HandlerInterceptor { @Override