eclipse No mapping found fro HTTP request with URI [] in DispatcherServlet .

   一、先查看.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\wcf\WEB-INF\classes是否存在class生成文件,若沒有則重啓eclipse在進行project->cleanweb

  二、查看web.xml是否配置spring

  

<servlet>
        <servlet-name>frontServlet</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath:spring-servlet.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

三、查看jar包是否存在,若不存在則從新加入jar。app

 

以上是有可能發生的問題,都會致使。以上僅我的遇到的bug,對你們有所幫助就好。哈哈eclipse

相關文章
相關標籤/搜索