当前位置: 代码迷 >> HTML/CSS >> No 地图ping found for HTTP request with URI [/springmvc_hello/welcome.html] in Di
  详细解决方案

No 地图ping found for HTTP request with URI [/springmvc_hello/welcome.html] in Di

热度:729   发布时间:2013-08-29 10:33:02.0
No mapping found for HTTP request with URI [/springmvc_hello/welcome.html] in Di

八月 19, 2013 10:47:56 上午 org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping found for HTTP request with URI [/springmvc_hello/welcome.html] in DispatcherServlet with name 'hello'
搜索了网上的好多解决方案都没有成功。

多个原因可能会报一个错误:

我的解决方法在hello-servlet.xml配置中,文件路径不对

?<bean name="welcome.html" class="com.usi.controller.WelcomeController" />
??? <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
??? ??? <property name="prefix" value="/WEB-INF/jsp/" />
??? ??? <property name="suffix" value=".jsp" />
??? ???
??? </bean>

修改为:

?

<bean name="/welcome.html" class="com.usi.controller.WelcomeController" />
    <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/WEB-INF/jsp/" />
        <property name="suffix" value=".jsp" />
       
    </bean>

?/welcome.xml

?

  相关解决方案