Spring MVC中的Response.Clear和Response.ClearContent
我需要知道Spring MVC中的Response.Clear和Response.ClearContent是什么。
Response.Clear()
调用Response.ClearContent()
(只是同一函数的一个更匹配的名称)。 没有区别。 除了标题信息之外,两者都清除响应流。
public void Clear () { ClearContent (); } public void ClearContent () { output_stream.Clear (); content_length = -1; }