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