title: SpringBoot how to set order of Filter without annotation
body: <p>I'm trying to insert (at first position) a simple custom Cors filter inside the spring filter chain.</p>
  
  <p>If I do it like this</p>
  
  <pre><code>@Component
  @Order(Ordered.HIGHEST_PRECEDENCE)
  public class CorsFilter implements Filter {
  </code></pre>
  
  <p>it works perfectly
  I can verify it by putting a breakpoint in Spring's ServletHandler.java where there the line</p>
  
  <pre><code>chain=getFilterChain(baseRequest, target, servlet_holder);
  </code></pre>
  
  <p>I was just wondering if I wish <strong>not</strong> to use <code>@Componenent and @Order</code> and instead defining the Filter bean the Application context. 
  How can I set the order of the filters ?</p>