| | |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | |
| | | public class JwtTokenUtil { |
| | | |
| | | public static final String HEADER_KEY = "web_token"; |
| | | @Autowired |
| | | private RedisTemplate<String,Object> redisTemplate; |
| | | // @Autowired |
| | | // private RedisTemplate<String,Object> redisTemplate; |
| | | |
| | | @Resource(name="sessionRedisTemplate") |
| | | private RedisTemplate<Object, Serializable> redisTemplate; |
| | | @Resource |
| | | private JwtProperties jwtProperties; |
| | | |