title: SpringBoot: Bypass OncePerRequestFilter filters
body: <p>I have a basic SpringBoot 2.0.5.RELEASE app. Using Spring Initializer, JPA, embedded Tomcat, Thymeleaf template engine, and package as an executable JAR file.</p>
  
  <p>I have created a Custom JWT based security filter JwtFilter :</p>
  
  <pre><code>@Provider
  public class JwtAuthorizationTokenFilter extends OncePerRequestFilter {
  ...
  }
  </code></pre>
  
  <p>But I want to Bypass this filter only for 1 specific request / method:
  <code>"/api/v1/menus"</code>, when is a <code>POST</code></p>
  
  <p>But I don't know if it is possible in the <code>WebSecurityConfigurerAdapter</code> :</p>
  
  <pre><code> JwtAuthorizationTokenFilter authenticationTokenFilter = new JwtAuthorizationTokenFilter(userDetailsService(), jwtTokenUtil, tokenHeader);
       httpSecurity
           .addFilterBefore(authenticationTokenFilter, UsernamePasswordAuthenticationFilter.class)
            .antMatcher("/api/v1/menus")
  </code></pre>