mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-14 05:41:12 +00:00
moving from Webjars to Bower #83
This commit is contained in:
parent
a768e877ef
commit
540d31ed21
6 changed files with 49 additions and 31 deletions
|
|
@ -28,9 +28,6 @@
|
|||
(see header.jsp for more details) -->
|
||||
<mvc:resources mapping="/resources/**" location="/resources/"/>
|
||||
|
||||
<!-- uses WebJars so Javascript and CSS libs can be declared as Maven dependencies (Bootstrap, jQuery...) -->
|
||||
<mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/"/>
|
||||
|
||||
<mvc:view-controller path="/" view-name="welcome"/>
|
||||
|
||||
<!-- serve static resources (*.html, ...) from src/main/webapp/
|
||||
|
|
|
|||
|
|
@ -9,25 +9,23 @@ PetClinic :: a Spring Framework demonstration
|
|||
<title>PetClinic :: a Spring Framework demonstration</title>
|
||||
|
||||
|
||||
<spring:url value="/webjars/bootstrap/2.3.0/css/bootstrap.min.css" var="bootstrapCss"/>
|
||||
<spring:url value="/bower_components/bootstrap/docs/assets/css/bootstrap.css" var="bootstrapCss"/>
|
||||
<link href="${bootstrapCss}" rel="stylesheet"/>
|
||||
|
||||
<spring:url value="/resources/css/petclinic.css" var="petclinicCss"/>
|
||||
<link href="${petclinicCss}" rel="stylesheet"/>
|
||||
|
||||
<spring:url value="/webjars/jquery/2.0.3/jquery.js" var="jQuery"/>
|
||||
<spring:url value="/bower_components/jquery/jquery.js" var="jQuery"/>
|
||||
<script src="${jQuery}"></script>
|
||||
|
||||
<!-- jquery-ui.js file is really big so we only load what we need instead of loading everything -->
|
||||
<spring:url value="/webjars/jquery-ui/1.10.3/ui/jquery.ui.core.js" var="jQueryUiCore"/>
|
||||
<spring:url value="/bower_components/query-ui/ui/jquery.ui.core.js" var="jQueryUiCore"/>
|
||||
<script src="${jQueryUiCore}"></script>
|
||||
|
||||
<spring:url value="/webjars/jquery-ui/1.10.3/ui/jquery.ui.datepicker.js" var="jQueryUiDatePicker"/>
|
||||
<spring:url value="/bower_components/query-ui/ui/jquery.ui.datepicker.js" var="jQueryUiDatePicker"/>
|
||||
<script src="${jQueryUiDatePicker}"></script>
|
||||
|
||||
<!-- jquery-ui.css file is not that big so we can afford to load it -->
|
||||
<spring:url value="/webjars/jquery-ui/1.10.3/themes/base/jquery-ui.css" var="jQueryUiCss"/>
|
||||
<spring:url value="/bower_components/query-ui/themes/base/jquery.ui.base.css" var="jQueryUiCss"/>
|
||||
<link href="${jQueryUiCss}" rel="stylesheet"></link>
|
||||
</head>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@
|
|||
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
||||
<stringProp name="HTTPSampler.protocol"></stringProp>
|
||||
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
||||
<stringProp name="HTTPSampler.path">${CONTEXT_WEB}/webjars/jquery/2.0.3/jquery.js</stringProp>
|
||||
<stringProp name="HTTPSampler.path">${CONTEXT_WEB}/bower_components/jquery/jquery.js</stringProp>
|
||||
<stringProp name="HTTPSampler.method">GET</stringProp>
|
||||
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
||||
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue