javax.servlet.ServletException: Could not resolve view with name

   SpringMVC+Freemarker的开发框架中,遇到了这个异常javax.servlet.ServletException: Could not resolve view with name,这个是说视图不能被解析识别,一般是html,jsp的名字写错了,有时候是在Action中返回的视图名写错了,有时候是Action本来是要返回一个json字符串,而忘记在Action加注解 @ResponseBody,导致Action去找视图,这个样就会报异常。

 

你可能感兴趣的:(javax.servlet.ServletException: Could not resolve view with name)