严重: Servlet.service() for servlet

Spring MVC

严重: Servlet.service() for servlet [FrankDemo] in context with path [/FrankDemo] threw exception [Could not resolve view with name '/frank' in servlet with name 'SDS'] with root cause
javax.servlet.ServletException: Could not resolve view with name 'product/info/moveDownImageDetailForSession' in servlet with name 'SDS'
 at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1162)
 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)
 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
 at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)

解决方法:

 需要在方法上添加  @ResponseBody

猜你喜欢

转载自frank1998819.iteye.com/blog/1867188