0
在类org.apache.camel.component.cxf.feature.PayLoadDataFormatFeature中,allowStreaming默认情况下处于启用状态。默认情况下,这会将MessagePart类型设置为DOMSource或Source,用于PAYLOAD模式。在Payload模式下在Camel CXF服务器上默认开启流式传输
static {
String s = System.getProperty("org.apache.camel.component.cxf.streaming");
DEFAULT_ALLOW_STREAMING = s == null || Boolean.parseBoolean(s);
}
boolean allowStreaming = DEFAULT_ALLOW_STREAMING;
因此它看起来像关闭这种行为allowStreaming = false应明确设置在CxfEndpoint上。只是想知道这是否是由设计?提前致谢。