天天看点

javax.servlet.ServletException——SpringMVC跳转页面时异常

SpringMVC 跳转页面异常

Http Status 500-Circular view path[test1]:would dispatch back to the current handler URL[/Ares01/test1] again.

Check your ViewResolver set up!(Hint:This may be the result of an unspecified view,due to default view name generation.)

原因:ModelAndView的包导错

正确:org.springframework.web.servlet.ModelAndView

错误:org.springframework.web.portlet.ModelAndView

继续阅读