Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit 2af6d43

Browse files
committed
update SPR-12640 repro with webjars resources
1 parent 92fb8d1 commit 2af6d43

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

SPR-12640/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@
8888
<version>1.2</version>
8989
</dependency>
9090

91+
<dependency>
92+
<groupId>org.webjars</groupId>
93+
<artifactId>bootstrap</artifactId>
94+
<version>3.3.1</version>
95+
</dependency>
96+
9197
<!-- Apache Tiles
9298
<dependency>
9399
<groupId>org.apache.tiles</groupId>
@@ -252,7 +258,7 @@
252258
<properties>
253259
<cargo.container.id>tomcat8x</cargo.container.id>
254260
<cargo.container.url>
255-
http://www.eu.apache.org/dist/tomcat/tomcat-8/v8.0.15/bin/apache-tomcat-8.0.15.zip
261+
http://www.eu.apache.org/dist/tomcat/tomcat-8/v8.0.18/bin/apache-tomcat-8.0.18.zip
256262
</cargo.container.url>
257263
</properties>
258264
</profile>

SPR-12640/src/main/webapp/WEB-INF/spring/servlet-context.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@
2121

2222
<mvc:resources mapping="/static/**" location="classpath:/static/" cache-period="120"/>
2323

24+
<mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/"/>
25+
2426
</beans>

SPR-12640/src/main/webapp/WEB-INF/views/home.jsp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
<html>
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<link rel="stylesheet" type="text/css" href="<c:url value="/static/style.css" />">
8+
<link rel="stylesheet" type="text/css" href="<c:url value="/static/style.css" />">
9+
<link rel="stylesheet" href="<c:url value="/webjars/bootstrap/3.3.1/css/bootstrap.min.css"/>"/>
910
<title>Home</title>
1011
</head>
1112
<body>
1213
<h1>Home</h1>
14+
<p>CSS Link: <c:url value="/static/style.css" /></p>
15+
<p>CSS Link webjar: <c:url value="/webjars/bootstrap/3.3.1/css/bootstrap.min.css"/></p>
1316
</body>
1417
</html>

0 commit comments

Comments
 (0)