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