当前位置:网站首页>threw exception [Circular view path [index]: would dispatch back to the current handler URL [/index]
threw exception [Circular view path [index]: would dispatch back to the current handler URL [/index]
2022-07-24 14:02:00 【秋9】
【现象】
2022-07-23 14:54:31.191 [http-nio-8080-exec-9] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,175] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [index]: would dispatch back to the current handler URL [/index] 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 [index]: would dispatch back to the current handler URL [/index] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
at org.springframework.web.servlet.view.InternalResourceView.prepareForRendering(InternalResourceView.java:210)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:148)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:317)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1373)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1118)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1057)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
【解决方法】
@RequestMapping({"/index"})
public ModelAndView index(String key) throws Exception {
this.logger.debug("进入搜索页");
ModelAndView mav = this.getModelAndView("index");
mav.addObject("keyword", key);
this.logger.debug("" + mav);
return mav;
}修改为:
@RequestMapping({"/home"})
public ModelAndView index(String key) throws Exception {
this.logger.debug("进入搜索页");
ModelAndView mav = this.getModelAndView("index");
mav.addObject("keyword", key);
this.logger.debug("" + mav);
return mav;
}边栏推荐
- R语言使用epiDisplay包的dotplot函数通过点图的形式可视化不同区间数据点的频率、使用by参数指定分组参数可视化不同分组的点图分布、使用cex.Y.axis参数指定Y轴分组标签文本的大小
- Sringboot plugin framework implements pluggable plug-in services
- Matlab program for natural gas flow calculation
- Add an element to the object array with unshift
- Lazy loading of pictures
- R语言检验样本比例:使用prop.test函数执行单样本比例检验计算总体中成功样本比例p值的置信区间
- 栈与队列——225. 用队列实现栈
- 达梦实时主备集群搭建
- 使用树莓派做Apache2 HA实验
- 栈与队列——232. 用栈实现队列
猜你喜欢

Sringboot plugin framework implements pluggable plug-in services

2021-07-09

【NLP】下一站,Embodied AI

Rhcsa sixth note
![The solution to the error of [installation detects that the primary IP address of the system is the address assigned by DHCP] when installing Oracle10g under win7](/img/25/aa9bcb6483bb9aa12ac3730cd87368.png)
The solution to the error of [installation detects that the primary IP address of the system is the address assigned by DHCP] when installing Oracle10g under win7
![[untitled] rhcsa first operation](/img/ba/6b9c11edbc18ffb52f6046360b5b10.png)
[untitled] rhcsa first operation

Network security -- Service Vulnerability scanning and utilization

软链接、硬链接

达梦实时主备集群搭建

C language -- program environment and preprocessing
随机推荐
How to install PHP 5.6 on Ubuntu 18.04 and Debian 9
Flink fault tolerance mechanism (V)
OC sets the image fillet, and the image is not deformed
On the number of solutions of indefinite equations
Flink高级特性和新特性(八)v2
不要灰心,大名鼎鼎的YOLO、PageRank影响力爆棚的研究,曾被CS顶会拒稿
使用树莓派做Apache2 HA实验
Source code analysis of ArrayList
OWASP zap security testing tool tutorial (Advanced)
在LNMP架构中搭建Zabbix监控服务
How to quickly wrap lines in Excel table
Chapter VI bus
Learn science minimize
Detailed explanation of MSTP protocol for layer 3 switch configuration [Huawei ENSP experiment]
Build ZABBIX monitoring service in LNMP architecture
Wechat applet todo case
String - Sword finger offer 58 - ii Rotate string left
数据类型二进制字符串类型
R语言使用epiDisplay包的dotplot函数通过点图的形式可视化不同区间数据点的频率、使用by参数指定分组参数可视化不同分组的点图分布、使用cex.Y.axis参数指定Y轴分组标签文本的大小
"XXX" cannot be opened because the identity of the developer cannot be confirmed. Or what file has been damaged solution