Is it possible to have the equivalent of
defined in an AnnotationConfig(Web)ApplicationContext
? Right now I have:<
If you are using Spring 3.1 with WebMvc, you can configure default servlet handling like this:
@Configuration
@EnableWebMvc
public class MvcConfig extends WebMvcConfigurerAdapter {
@Override
public void configureDefaultServletHandling(
DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
}