Remove duplicate slash from resolved WebJar locations

This commit updates the WEBJARS_LOCATION in WebJarResourceResolver to
avoid getting duplicate slashes in resolved resources locations such
as `/webjars//bootstrap/3.3.2/js/bootstrap.min.js`.

Issue: SPR-14018
This commit is contained in:
Ruben Dijkstra
2016-03-03 18:01:09 +01:00
committed by Brian Clozel
parent 9e167045fc
commit 41da04d386

View File

@@ -45,7 +45,7 @@ import org.springframework.core.io.Resource;
*/
public class WebJarsResourceResolver extends AbstractResourceResolver {
private final static String WEBJARS_LOCATION = "META-INF/resources/webjars";
private final static String WEBJARS_LOCATION = "META-INF/resources/webjars/";
private final static int WEBJARS_LOCATION_LENGTH = WEBJARS_LOCATION.length();