renamed "mapping-order" to "order"; added "cache-period"

This commit is contained in:
Juergen Hoeller
2010-08-16 19:04:51 +00:00
parent ecb351c475
commit a032ce12cb
4 changed files with 43 additions and 38 deletions

View File

@@ -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;
}
}
}
}

View File

@@ -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>