Recently learning Spring Boot, according to the tutorial did a Hello world, using the Reset interface is not a problem, while accessing the template page, the browser has been reported: Whitelabel Error page 404
Baidu +google an afternoon most of the answers are *application the startup class should be in the parent package, and here's my project structure:
The location of my startup class for this project is absolutely fine, but it's still 404. The answers on the web are basically useless.
And then I wondered if MAVEN was wrong when referencing the jar. I'll remove all of the spring's boot folders from the. M2, and then eclipse will automatically download the boot jar package when the project is built, run the project again, access the page, and access the correct ...
The workaround is to remove the jar packages configured in Project Pom.xml in Maven and rebuild the project.