From 807407f491d20527b8c793a80505bb921f0966e5 Mon Sep 17 00:00:00 2001 From: ronger Date: Wed, 15 Dec 2021 09:05:14 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=9C=80=E5=90=8E=E5=9C=A8=E7=BA=BF=E6=97=B6=E9=97=B4=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/rymcu/forest/jwt/service/RedisTokenManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/rymcu/forest/jwt/service/RedisTokenManager.java b/src/main/java/com/rymcu/forest/jwt/service/RedisTokenManager.java index 9582eb3..4387a84 100644 --- a/src/main/java/com/rymcu/forest/jwt/service/RedisTokenManager.java +++ b/src/main/java/com/rymcu/forest/jwt/service/RedisTokenManager.java @@ -7,6 +7,7 @@ import com.rymcu.forest.service.UserService; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import org.apache.commons.lang.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Component; @@ -23,7 +24,7 @@ import java.util.concurrent.TimeUnit; @Component public class RedisTokenManager implements TokenManager { - @Resource + @Autowired private StringRedisTemplate redisTemplate; @Resource private UserService userService;