Code example for WebMvcConfigurationSupport

0
		return this.servlet.wrappedResponse.encodeURL(path); 
	} 
 
 
	@Configuration 
	static class WebConfig extends WebMvcConfigurationSupport { 
 
		@Override 
		public void addResourceHandlers(ResourceHandlerRegistry registry) { 
			registry.addResourceHandler("/resources/**") 
				.addResourceLocations("classpath:org/springframework/web/servlet/resource/test/") 
				.resourceChain(true).addResolver(new VersionResourceResolver().addContentVersionStrategy("/**")); 
		} 
	} 
 
	@SuppressWarnings("serial") 
	private static class TestServlet extends HttpServlet { 
 
		private HttpServletResponse wrappedResponse;