title: How to enable logging for @RestController?
body: <p>How can I automatically log any incoming <code>GET</code> url requests on a <code>REST</code> service written with <code>Spring</code>?</p>
  
  <pre><code>@RestController
  public class MyRest {
      @RequestMapping(method = RequestMethod.GET,
              produces = MediaType.APPLICATION_XML_VALUE)
      @ResponseBody
      public ComplexRsp test() {
          //...
      }
  }
  </code></pre>
  
  <p>I have used <code>cxf</code> for <code>soap</code>, where logging is as easy as annotation the webservice with <code>@InInterceptors, @OutInterceptors</code>.</p>
  
  <p>Is there anything similar in spring for rest?</p>