Dynamic filter = servletContext.addFilter("springFilter", org.springframework.web.filter.DelegatingFilterProxy.class);

		EnumSet<DispatcherType> dispatcherTypes = EnumSet.allOf(DispatcherType.class);
		filter.addMappingForUrlPatterns(dispatcherTypes, true, "/*");