mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-05-12 14:52:07 +08:00
Merge remote-tracking branch 'origin/dev' into 2.X
This commit is contained in:
@@ -88,8 +88,11 @@ public class WebFluxUtils {
|
|||||||
}
|
}
|
||||||
DataBuffer buffer = (DataBuffer) obj;
|
DataBuffer buffer = (DataBuffer) obj;
|
||||||
try (DataBuffer.ByteBufferIterator iterator = buffer.readableByteBuffers()) {
|
try (DataBuffer.ByteBufferIterator iterator = buffer.readableByteBuffers()) {
|
||||||
CharBuffer charBuffer = StandardCharsets.UTF_8.decode(iterator.next());
|
StringBuilder sb = new StringBuilder();
|
||||||
return charBuffer.toString();
|
iterator.forEachRemaining(e -> {
|
||||||
|
sb.append(StandardCharsets.UTF_8.decode(e));
|
||||||
|
});
|
||||||
|
return sb.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user