title: Invoke a filter before spring security filter chain in boot
body: <p>I have configured my filter as below but it doesn't get invoked before Spring Security Filter chain.  I have set the order as zero</p>
  
  <p>I'm using Spring Boot 1.3 which support setting order on filter</p>
  
  <pre><code>@Bean
  public FilterRegistrationBean filterRegistrationBean() {
  
    FilterRegistrationBean registrationBean = new FilterRegistrationBean();
  
    registrationBean.setFilter(new UrlRewriteFilter());
    registrationBean.addUrlPatterns("*");
    registrationBean.addInitParameter("confReloadCheckInterval", "5");
    registrationBean.addInitParameter("logLevel", "DEBUG");
    registrationBean.addInitParameter("confPath", "urlrewrite.xml");
    registrationBean.setOrder(0);
  
    return registrationBean;
  }
  </code></pre>