Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我很难找到解决方案,也许是因为我的术语是错误的。
我想做的是能够记录我调用 JAXRS WebClient 时返回的.get()RAW xml。
.get()
当我执行此操作时,我拥有的当前设置可以毫无问题地进行解组:
MyObject result = (MyObject) client.get(MyObject.class);
但是,我想在调试时查看服务器以 XML 的形式实际返回到 System.out 的内容。
我能够通过以下方式返回原始 XML:
String rawXml = client.get(String.class)
然后,我能够检查原始 XML,并在需要时将其传递给类中的记录器。