com.seepine.auth.util.AuthUtil Maven / Gradle / Ivy
package com.seepine.auth.util;
import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.StrUtil;
import com.seepine.auth.entity.AuthProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.DependsOn;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
/** @author seepine */
@Component
@DependsOn({"redisTemplate", "authProperties"})
public class AuthUtil {
private static AuthUtil authUtil;
@Autowired private RedisTemplate redisTemplate;
@Autowired private AuthProperties authProperties;
private final ThreadLocal