Polishing

This commit is contained in:
Juergen Hoeller 2016-02-29 12:57:09 +01:00
parent 8e5e384de7
commit 9c0f99c0b5
2 changed files with 4 additions and 5 deletions

View File

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

View File

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