C/C++教程

[Circular view path [abc]: would dispatch back to the current handler URL

本文主要是介绍[Circular view path [abc]: would dispatch back to the current handler URL,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
Servlet.service() for servlet [dispatcherServlet] in 
context with path [] threw exception [Circular view path [abc]: would dispatch back to the current handler URL [/abc] again. 
Check your ViewResolver setup!
 (Hint: This may be the result of an unspecifiedview,
  due to default view name generation.)] with root cause

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

在springboot工程中 controller中写了返回值void报错
在这里插入图片描述
还可能是返回的视图解析器出现重复跳转的情况报错

可以将@Controller改为@RestController
同理也可以在方法上加上@Responsbody
都是让它不走视图解析器

这篇关于[Circular view path [abc]: would dispatch back to the current handler URL的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!