title: With multiple Spring WebMvcConfigurerAdapter how can I control the order of the Configuration classes?
body: <p>With 2 configurations, in different jar files I would like to control the order of interceptor registration. One interceptor potentially relies on data set by the other. </p>
  
  <p>I have tried @Order on the addInterceptors method.</p>
  
  <pre><code>@Configuration
  public class PipelineConfig extends WebMvcConfigurerAdapter {
    @Autowired
    @Qualifier("Audit")
    HandlerInterceptor auditInterceptor;
  
    public PipelineConfig() {
    }
  
    @Order(2)
    public void addInterceptors(InterceptorRegistry registry) {
      registry.addInterceptor(this.auditInterceptor);
    }
  }
  </code></pre>
  
  <p>And</p>
  
  <pre><code>@Configuration
  public class ExecutionPipelineConfig extends WebMvcConfigurerAdapter {
    @Autowired
    @Qualifier("ExecutionContext")
    HandlerInterceptor executionContextInterceptor;
  
    public ExecutionPipelineConfig() {
    }
  
    @Order(1)
    public void addInterceptors(InterceptorRegistry registry) {
      registry.addInterceptor(this.executionContextInterceptor);
    }
  }
  </code></pre>