renamed "mapping-order" to "order"; added "cache-period"
This commit is contained in:
@@ -203,7 +203,6 @@ public class MvcNamespaceTests {
|
||||
chain = mapping.getHandler(request);
|
||||
assertEquals(5, chain.getInterceptors().length);
|
||||
assertTrue(chain.getInterceptors()[4] instanceof WebRequestHandlerInterceptorAdapter);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -465,7 +464,6 @@ public class MvcNamespaceTests {
|
||||
public void validate(Object target, Errors errors) {
|
||||
this.validatorInvoked = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static class TestBean {
|
||||
@@ -482,7 +480,6 @@ public class MvcNamespaceTests {
|
||||
public void setField(String field) {
|
||||
this.field = field;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static class TestMockServletContext extends MockServletContext {
|
||||
@@ -495,7 +492,6 @@ public class MvcNamespaceTests {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
|
||||
|
||||
<mvc:resources mapping="/resources/**" location="/, classpath:/META-INF/" mapping-order="5"/>
|
||||
<mvc:resources mapping="/resources/**" location="/, classpath:/META-INF/" cache-period="3600" order="5"/>
|
||||
|
||||
</beans>
|
||||
|
||||
Reference in New Issue
Block a user