mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-02 10:57:49 +08:00
feat(基础模块): 设置token解析WebFilter的加载顺序 (#329)
This commit is contained in:
@@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.config.BeanPostProcessor;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.context.event.EventListener;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.lang.NonNull;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.StringUtils;
|
||||
@@ -29,6 +30,7 @@ import java.util.function.Function;
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
@Order(1)
|
||||
public class UserTokenWebFilter implements WebFilter, BeanPostProcessor {
|
||||
|
||||
private final List<ReactiveUserTokenParser> parsers = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user