控制台报错:No mapping found for HTTP request with URI [/index] in DispatcherServlet with dispatche
1. 检查springmvc配置:如controller组件扫描,视图解析器
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
3.把index.jsp文件放在WebContent下
博客主要围绕控制台出现的“No mapping found for HTTP request with URI [/index] in DispatcherServlet with dispatche”报错展开,给出了解决办法,包括检查springmvc配置,如controller组件扫描、视图解析器,还提到将index.jsp文件放在WebContent下。
805

被折叠的 条评论
为什么被折叠?



