Polishing
This commit is contained in:
parent
8e5e384de7
commit
9c0f99c0b5
|
@ -25,8 +25,8 @@ import org.junit.runners.model.InitializationError;
|
||||||
* {@code @RunWith(SpringRunner.class)}.
|
* {@code @RunWith(SpringRunner.class)}.
|
||||||
*
|
*
|
||||||
* <p>If you would like to use the Spring TestContext Framework with a runner other than
|
* <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}
|
* this one, use {@link org.springframework.test.context.junit4.rules.SpringClassRule}
|
||||||
* and {@link org.springframework.test.context.junit4.rules.SpringMethodRule SpringMethodRule}.
|
* and {@link org.springframework.test.context.junit4.rules.SpringMethodRule}.
|
||||||
*
|
*
|
||||||
* <p><strong>NOTE:</strong> This class requires JUnit 4.12 or higher.
|
* <p><strong>NOTE:</strong> This class requires JUnit 4.12 or higher.
|
||||||
*
|
*
|
||||||
|
|
|
@ -449,13 +449,12 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>-1: no generation of cache-related headers</li>
|
* <li>-1: no generation of cache-related headers</li>
|
||||||
* <li>0 (default value): "Cache-Control: no-store" will prevent caching</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
|
* <li>1 or higher: "Cache-Control: max-age=seconds" will ask to cache content;
|
||||||
* with session attributes</li>
|
* not advised when dealing with session attributes</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
* <p>In contrast to the "cacheSeconds" property which will apply to all general
|
* <p>In contrast to the "cacheSeconds" property which will apply to all general
|
||||||
* handlers (but not to {@code @SessionAttributes} annotated handlers),
|
* handlers (but not to {@code @SessionAttributes} annotated handlers),
|
||||||
* this setting will apply to {@code @SessionAttributes} handlers only.
|
* this setting will apply to {@code @SessionAttributes} handlers only.
|
||||||
*
|
|
||||||
* @see #setCacheSeconds
|
* @see #setCacheSeconds
|
||||||
* @see org.springframework.web.bind.annotation.SessionAttributes
|
* @see org.springframework.web.bind.annotation.SessionAttributes
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue