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.
我正在使用 Jboss 和 jax-ws。
我怎样才能获得类似的效果
System.setProperty("com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump", "true")?
谢谢!祝你今天过得愉快!
您应该在 JBoss 日志中启用 httpclient.wire.content 类别,这会将 http 消息转储到配置的日志文件中。
<category name="httpclient.wire.content"> <priority value="DEBUG"/> </category>
您将其添加到标签<YOUR JBOSS INSTALL FOLDER>\server\default\conf\jboss-log4j.xml内</log4j:configuration>
<YOUR JBOSS INSTALL FOLDER>\server\default\conf\jboss-log4j.xml
</log4j:configuration>