Java SPRINGMVC No mapping found for HTTP request with URI

Source: Internet
Author: User

Recently, want to write a full-text search tool, thinking is to use Springmvc+lucene+tika to complete, when the entire architecture has been set up, found that the SPRINGMVC configuration control is always mapped, always reported no mapping found for HTTP request with URI, resulting in the inability to execute the logical layer;

After two days of continuous attempts (during the spring source have been looked at some, and by debugging the spring code to find the reason, eventually did not find), occasionally feel the use of MAVEN's clean and install the way to fight a war try, incredibly problem does not exist. Considered, summarized as follows:

I was using MAVEN to build the entire project, in order to facilitate the direct use of the Eclipse integrated Tomcat to run the program, resulting in always can't find control, read a lot of blogs online, have not solved the problems I encountered, eventually by using maven clean, The install then generates a war package, which, through the Conf/catalina/*.xml configuration in Tomcat, points directly to the target directory that Maven generates and the problem disappears.

This article is from the "Java" blog, so be sure to keep this source http://zwbjava.blog.51cto.com/2789897/1850918

Java SPRINGMVC No mapping found for HTTP request with URI

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.