About no mapping found for HTTP request with URI ...

Source: Internet
Author: User

When you see this blog, it means that you've gone crazy like me! But it's okay. Got it!!!

Those things on the net really look more disturbing, because have not solved ...

Cause 1. The access path is indeed wrong, causing dispatcher to find a place for you to communicate, modify the collar to let him and controller inside the requestmapping just like the line

Cause two: It is also my mistake, is to put Springmvc.xml in their own new folder, but this folder is a Source folder, when in Web. XML <init-param> This is not the case when you configure the value in this way to fail when you start Tomcat:

Classpath*:/sources/springmvc.xml

But there is a problem here (until now, do not know why, do not ask ...)

Workaround: 1. Place the Spring.xml file directly in the SRC directory and configure value to Classpath:springmvc.xml

2. Feel that the first kind of confusion on their own to create a common package such as the name Config, and then configure Value:classpath:config/springmvc.xml

On the line ...

Of course not to say other people's wrong, but it is really I used a long time to come out of the ....

About 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.