Springboot错误--would dispatch back to the current handler URL [/adPlace] again. Check your ViewResolv

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36802726/article/details/81282757

控制台显示的错误:

2018-07-30 11:59:49.911 ERROR 17344 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [adPlace]: would dispatch back to the current handler URL [/adPlace] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)] with root cause

javax.servlet.ServletException: Circular view path [adPlace]: would dispatch back to the current handler URL [/adPlace] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation

解决方法:
把@Controller改成@RestController
 

猜你喜欢

转载自blog.csdn.net/qq_36802726/article/details/81282757