在unmarshalException的情况下,是否有任何好的替代方法来记录传入的主体,而不是像:
try{
byteRequest = IOUtils.toByteArray(request.getInputStream());
jaxbRequest = unMarshaller.unmarshal(new ByteArrayInputStream(byteRequest));
} catch (UnmarshalException ex) {
LOG.error("Exception unmarshalling: {}", new String(byteRequest, "UTF-8"), ex);
}