1
Spring MVC에서 Response.Clear 및 Response.ClearContent가 무엇인지 알아야합니다.Response.Clear 및 Response.ClearContent in Spring MVC
Spring MVC에서 Response.Clear 및 Response.ClearContent가 무엇인지 알아야합니다.Response.Clear 및 Response.ClearContent in Spring MVC
Response.Clear()
은 동일한 기능에 대해 더 많이 일치하는 이름입니다 (Response.ClearContent()
). 다른 점이 없다. 둘 다 헤더 정보를 제외한 응답 스트림을 지 웁니다.
public void Clear()
{
ClearContent();
}
public void ClearContent()
{
output_stream.Clear();
content_length = -1;
}
FROM MSDN에서 ClearContent 메서드는 헤더 정보를 지우지 않습니다. – user960567
@ user960567 MSDN에 따르면, Response.Clear() 메서드는 헤더 정보를 지우지 않으므로 거기에는 아무런 차이가 없습니다. –