日志xml请求spring mvc restful

日志xml请求spring mvc restful,xml,spring,model-view-controller,rest,request,Xml,Spring,Model View Controller,Rest,Request,我的要求很简单。我需要记录传入的xml请求 @RequestMapping(method=RequestMethod.GET, value="/getAddress") public String testPrintingRequestBody(@RequestBody Address address){ System.out.println(" print address : "+address) ; return "return something"; }

我的要求很简单。我需要记录传入的xml请求

@RequestMapping(method=RequestMethod.GET, value="/getAddress")
public String testPrintingRequestBody(@RequestBody  Address address){       
    System.out.println(" print address : "+address) ;
    return "return something";
}
我有什么办法可以做到这一点吗。我尝试了HandlerInterceptorAdapter和HttpServletRequestWrapper,但都没有帮到我