使用resteasy记录JSON帖子 [英] Logging json posts with resteasy
本文介绍了使用resteasy记录JSON帖子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一种在RESTEASY框架中记录JSON帖子的方法.
I'm looking for a way to log JSON posts in a RESTEASY framework.
我想记录POST正文以记录文件,以查看客户端向我发送的内容.
I woul like to log the POST body to log file to see what the client is sending to me.
有没有可以使用的拦截器或类似的东西,我找到了PreProcessInterceptor的示例,但它似乎已弃用.
Is there any interceptor or something similar that I can use, I have found an example for PreProcessInterceptor but it looks like it is deprecated.
我正在使用resteasy 3.0.8
I'm using resteasy 3.0.8
推荐答案
查看全文