No mapping found for HTTP request with URI [/***] in Dispatcherservlet with name ' Dispatcherservlet '

Source: Internet
Author: User

I believe many springboot beginners and I, have encountered the above hint, obviously the path is right, but is not found for the page and 404, which also bothered me for a long time, I also can not its solution, Baidu also rarely reasonable answer, because used before, obviously everything is normal, This also makes me paranoid, once suspicion is the question of idea, also re-installed, but also built many projects to experiment, which greatly delayed my graduation design, so go on, I will graduate.

One day, I came back from the company with exhaustion, sitting in front of the computer, I suddenly remembered some of the situation in the company, and then saw my project, found that my target (MAVEN project is the Taget,gradle project is out), it seems that the information is not very full, less my template, Also less I mybaits do XML files, this is not scientific, so I also Baidu, also in the wonder why Good project is not generated on the target.

In constant pursuit, I recently solved this problem, mainly is Pom.xml's WA. Add the following after the dependencies tag, as it determines what the target is packaged in.

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/**.*</include>
</includes>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>

</resources>
</build>

Everyone has a good job introduction, you can also add me 1471914707, or added a reward.

No mapping found for HTTP request with URI [/***] in Dispatcherservlet with name ' Dispatcherservlet '

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.