| | |
| | | package com.doumee.config; |
| | | |
| | | import com.doumee.config.jwt.JwtTokenUtil; |
| | | import com.doumee.core.utils.Constants; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @Order(1) |
| | | @Configuration |
| | | //@Order(1) |
| | | //@Configuration |
| | | public class GlobalFilterConfig implements GlobalFilter { |
| | | @Autowired |
| | | private RedisTemplate<String,Object> stringRedisTemplate; |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | // 返回未登录的自定义错误 |
| | | private Mono<Void> unAuthorize(ServerWebExchange exchange) { |
| | | // 设置错误状态码为401 |