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 '