一、直接在全局拦截器中获取,伪代码如下privateStringresolveBodyFromRequest(ServerHttpRequestserverHttpRequest){Flux<DataBuffer>body=serverHttpRequest.getBody();AtomicReference<String>bodyRef=newAtomicReference<>();body.subscribe(buffer->{CharBuffercharBuffer=StandardCharsets.UTF_8.decode(buffer.asByteBuffer());DataBufferUtils.release(buffer);bodyRef.set(charBuffe...
继续阅读 >