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

简介: 报错日志:{"timestamp":1526565246776,"status":500,"error":"Internal Server Error","exception":"javax.

报错日志:

{"timestamp":1526565246776,"status":500,"error":"Internal Server Error","exception":"javax.servlet.ServletException","message":"Circular view path [addKnowledge]: would dispatch back to the current handler URL [/addKnowledge] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)","path":"/addKnowledge"}

解决方案:
添加@ResponseBody 注解:

@PostMapping("/addKnowledge")
@ResponseBody
相关文章
|
5月前
DeprecationWarning:current URL string parser is deprecated, and will be removed in a future version.
DeprecationWarning:current URL string parser is deprecated, and will be removed in a future version.
|
Java 索引 Spring
Circular view path xxx would dispatch back to the current handler URL
版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用自由转载-保持署名-注明出处,谢谢。 https://blog.csdn.net/testcs_dn/article/details/79700275 ...
5423 0
|
Java Spring
《Springboot极简教程》问题解决:javax.servlet.ServletException: Circular view path [login]: would dispatch back to the current handler URL [/login] again
javax.servlet.ServletException: Circular view path [login]: would dispatch back to the current handler URL [/login] again.
5458 0
|
1月前
uView queryParams 对象转URL参数
uView queryParams 对象转URL参数
16 0
|
1月前
|
JavaScript
vue截取URL中的参数
vue截取URL中的参数
17 0
|
3月前
|
前端开发
[牛客网-前端大挑战QD2] 获取url参数
[牛客网-前端大挑战QD2] 获取url参数
21 0
|
3月前
BurpSuite8.2 -- 查找包含id参数的URL
BurpSuite8.2 -- 查找包含id参数的URL
20 1
|
3月前
|
分布式计算 DataWorks 关系型数据库
DataWorks数据源问题之参数“连接Url”如何解决
DataWorks数据源是指DataWorks中配置的用于数据集成的外部数据源;本合集将讲解如何在DataWorks中配置和管理数据源,以及处理数据源连接和集成过程中的问题。
29 5
|
4月前
Copy网页中F12里的请求url到postman,并且把所有参数都带过来
Copy网页中F12里的请求url到postman,并且把所有参数都带过来
29 0
|
3月前
feign使用url参数传参@SpringQueryMap使用
feign使用url参数传参@SpringQueryMap使用
36 0