| | |
| | | import io.jsonwebtoken.Jwts; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | |
| | | @Autowired |
| | | private RedisService redisService; |
| | | |
| | | // 令牌秘钥 |
| | | // @Value("${token.secret}") |
| | | private String secret = "iymGhx1XkAAHrex2Zf4ASbiD9P2ksTam"; |
| | | @Value("${token.secret:${spring.token.secret:}}") |
| | | private String secret; |
| | | |
| | | /** |
| | | * 验证用户认证信息 |