How to do filter mapping in AbstractAnnotationConfigDispatcherServletInitializer Spring
问题 Here is the problem: I can successfully register the Filter, but don't know how to set the mapping URL using this specific configuration. Here is my Class: public class WebInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { @Override protected Class<?>[] getRootConfigClasses() { return new Class<?>[]{AppConfig.class}; } @Override protected Class<?>[] getServletConfigClasses() { return new Class<?>[]{WebConfig.class}; } @Override protected Filter[] getServletFilters() {