在该LoginView
方法中,它显示一个错误,必须返回 type ModelAndView
。但我返回 type 的结果ModelAndView
。
@RequestMapping("/login")
public loginView( HttpServletRequest request, HttpServletResponse res)
{
String name = request.getParameter("username");
String password = request.getParameter("password");
if(password.equals("admin")){
return new ModelAndView("hipage","","");
}
}