Fix missing trailing / in resource paths

pull/1/merge
Dave Syer 12 years ago
parent a12f0dcd12
commit 8dae41f24c

@ -122,11 +122,11 @@ public class WebMvcAutoConfiguration {
public void addResourceHandlers(ResourceHandlerRegistry registry) { public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/resources/**").addResourceLocations("/") registry.addResourceHandler("/resources/**").addResourceLocations("/")
.addResourceLocations("classpath:/META-INF/resources/") .addResourceLocations("classpath:/META-INF/resources/")
.addResourceLocations("classpath:/resources") .addResourceLocations("classpath:/resources/")
.addResourceLocations("classpath:/"); .addResourceLocations("classpath:/");
registry.addResourceHandler("/**").addResourceLocations("/") registry.addResourceHandler("/**").addResourceLocations("/")
.addResourceLocations("classpath:/META-INF/resources/") .addResourceLocations("classpath:/META-INF/resources/")
.addResourceLocations("classpath:/static") .addResourceLocations("classpath:/static/")
.addResourceLocations("classpath:/"); .addResourceLocations("classpath:/");
} }

Loading…
Cancel
Save