🎨 优化记录最后在线时间代码

This commit is contained in:
ronger 2021-12-15 09:05:14 +08:00
parent 963cf1d139
commit 807407f491

View File

@ -7,6 +7,7 @@ import com.rymcu.forest.service.UserService;
import io.jsonwebtoken.Jwts; import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm; import io.jsonwebtoken.SignatureAlgorithm;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -23,7 +24,7 @@ import java.util.concurrent.TimeUnit;
@Component @Component
public class RedisTokenManager implements TokenManager { public class RedisTokenManager implements TokenManager {
@Resource @Autowired
private StringRedisTemplate redisTemplate; private StringRedisTemplate redisTemplate;
@Resource @Resource
private UserService userService; private UserService userService;