title: Spring 3 Interceptor Order
body: <p>I have a Spring 3 Web App that implements two interceptors. Im using a config class annotated @Configuration. The code is as follows:</p>
  
  <pre><code>    @Override
  public void addInterceptors(InterceptorRegistry registry) {
      // TODO Auto-generated method stub
      super.addInterceptors(registry);
      registry.addInterceptor(homeInterceptor()).addPathPatterns("/");
      registry.addInterceptor(allInterceptor());
  }
  </code></pre>
  
  <p>No matter what order I add the interceptors to the registry, the allInterceptor's preHandle function is always called before the homeInterceptor's preHandle. Does anyone know how to control the order that interceptors are invoked?</p>
  
  <p>Thanks!</p>