Bootstrap

WebFluxServerWebExchange 中form data获取问题

@Slf4j
public class OpenFilter implements WebFilter {
    @Override
    public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {

        return exchange.getFormData().doOnNext(
                formData -> {
                    Map<String, String> dataMap = formData.toSingleValueMap();
                    log.info("data数据:{}", dataMap);
                }
        ).then(Mono.defer(() -> chain.filter(exchange)));
    }
}
;