title: AnnotationConfigRegistry not found in spring 4
body: <p>I am having an strange behavior, using spring 4.1.1 I get this error.</p>
  
  <pre><code>    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile  (default-compile) on project newvalia-view: Compilation failure
  [ERROR] /C:/Users/edu/IdeaProjects/newvalia/newvalia- view/src/main/java/com/newvalia/web/init/WebInitContext.java:[19,12] cannot access org.springframework.context.annotation.AnnotationConfigRegistry
  [ERROR] class file for org.springframework.context.annotation.AnnotationConfigRegistry not found
  </code></pre>
  
  <p>while if I downgrade to spring 4.0.7 it compiles correctly.
  I am using simple spring webmwc configuration :</p>
  
  <pre><code>@Configuration
  @ComponentScan(value = "com.newvalia.web")
  @EnableWebMvc
  public class WebMvcConfig extends WebMvcConfigurerAdapter {
   }
  
  public class WebInitContext implements WebApplicationInitializer {
  @Override
  public void onStartup(ServletContext container) {
      AnnotationConfigWebApplicationContext ctx = new AnnotationConfigWebApplicationContext();
      ctx.register(WebMvcConfig.class);
  
      ctx.setServletContext(container);
  
      Dynamic servlet = container.addServlet("dispatcher", new DispatcherServlet(ctx));
      servlet.addMapping("/");
      servlet.setLoadOnStartup(1);
  
  }
  </code></pre>
  
  <p>is this a new expected behavior?</p>