提交 9c0f99c0 编写于 作者: J Juergen Hoeller

Polishing

上级 8e5e384d
......@@ -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.
*
......
......@@ -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
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册