From 8dae41f24c5fe614b579a960dd4382d06dcde53f Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Sat, 18 May 2013 16:03:27 +0100 Subject: [PATCH] Fix missing trailing / in resource paths --- .../bootstrap/autoconfigure/web/WebMvcAutoConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/web/WebMvcAutoConfiguration.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/web/WebMvcAutoConfiguration.java index d2fda21ae8..433eb9ee0d 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/web/WebMvcAutoConfiguration.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/web/WebMvcAutoConfiguration.java @@ -122,11 +122,11 @@ public class WebMvcAutoConfiguration { public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/resources/**").addResourceLocations("/") .addResourceLocations("classpath:/META-INF/resources/") - .addResourceLocations("classpath:/resources") + .addResourceLocations("classpath:/resources/") .addResourceLocations("classpath:/"); registry.addResourceHandler("/**").addResourceLocations("/") .addResourceLocations("classpath:/META-INF/resources/") - .addResourceLocations("classpath:/static") + .addResourceLocations("classpath:/static/") .addResourceLocations("classpath:/"); }