SpringMVC如何返回空视图

2024-11-29 00:20:45
推荐回答(1个)
回答1:

a:返回类型为void

public void Webinfo(HttpServletRequest request,HttpSession session){
siwi.GetWebInfo(request,session);
}

b:返回类型为String,返回空字符

public String Webinfo(HttpServletRequest request,HttpSession session){
siwi.GetWebInfo(request,session);
retirn "";
}