Browse Source

Polishing

pull/982/head
Juergen Hoeller 9 years ago
parent
commit
9c0f99c0b5
  1. 4
      spring-test/src/main/java/org/springframework/test/context/junit4/SpringRunner.java
  2. 5
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java

4
spring-test/src/main/java/org/springframework/test/context/junit4/SpringRunner.java

@ -25,8 +25,8 @@ import org.junit.runners.model.InitializationError; @@ -25,8 +25,8 @@ import org.junit.runners.model.InitializationError;
* {@code @RunWith(SpringRunner.class)}.
*
* <p>If you would like to use the Spring TestContext Framework with a runner other than
* this one, use {@link org.springframework.test.context.junit4.rules.SpringClassRule SpringClassRule}
* and {@link org.springframework.test.context.junit4.rules.SpringMethodRule SpringMethodRule}.
* this one, use {@link org.springframework.test.context.junit4.rules.SpringClassRule}
* and {@link org.springframework.test.context.junit4.rules.SpringMethodRule}.
*
* <p><strong>NOTE:</strong> This class requires JUnit 4.12 or higher.
*

5
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java

@ -449,13 +449,12 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter @@ -449,13 +449,12 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
* <ul>
* <li>-1: no generation of cache-related headers</li>
* <li>0 (default value): "Cache-Control: no-store" will prevent caching</li>
* <li>> 0: "Cache-Control: max-age=seconds" will ask to cache content; not advised when dealing
* with session attributes</li>
* <li>1 or higher: "Cache-Control: max-age=seconds" will ask to cache content;
* not advised when dealing with session attributes</li>
* </ul>
* <p>In contrast to the "cacheSeconds" property which will apply to all general
* handlers (but not to {@code @SessionAttributes} annotated handlers),
* this setting will apply to {@code @SessionAttributes} handlers only.
*
* @see #setCacheSeconds
* @see org.springframework.web.bind.annotation.SessionAttributes
*/

Loading…
Cancel
Save