前提
你需要一个过滤器
@Slf4j
@Component
public class MyGlobalFilter implements GlobalFilter, Ordered {
@Override
public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
log.info("-----------------全局过滤器MyGlobalFilter---------------------");
ServerHttpRequest request = exchange.getRequest();
String sign = request.getHeaders().g