title: How to register a Filter to one @RequestMapping method only?
body: <p>I registered the following filter for general content logging:</p>
  
  <pre><code>@Bean
  public Filter getLoggingFilter() {
      CommonsRequestLoggingFilter filter = new CommonsRequestLoggingFilter();
      filter.setIncludeQueryString(true);
      filter.setIncludePayload(true);
      filter.setMaxPayloadLength(5120);
      return filter;
  }
  </code></pre>
  
  <p>This filter catches on any request.</p>
  
  <p>Now I'd like to apply this filter to only one specific <code>@RequestMapping</code> method.</p>
  
  <p>Question: is that possible at all?</p>
  
  <p><strong>Update</strong>: the following filterbean results in a 404 when accessing the path.</p>
  
  <pre><code>@Bean
  public FilterRegistrationBean getLoggingFilter() {
      FilterRegistrationBean filter = new FilterRegistrationBean(new CommonsRequestLoggingFilter());
      filter.addUrlPatterns("/rest/my/specific/method/*");
      return filter;
  }
  </code></pre>