Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Could no

错误;

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Could not resolve view with name 'xxxxx in servlet with name ‘dispatcherServlet’] with root cause;request url:, print method parameters:N/A, return:

解决方案
将@Controller 改成 @RestController

猜你喜欢

转载自blog.csdn.net/qq_46645840/article/details/130247866