404 appears on the page when troubleshooting springboot startup

When I was developing today, there was no problem with the Contronller code and the front-end html. I found that when the browser entered localhost:8080, 404, so I checked and found that the SpringbootWebApplication file was placed in the subdirectory. insert image description here
The startup file of springboot must be placed in the parent directory to detect that
insert image description here
resources can be accessed normally after Contronller modification is completed.

Guess you like

Origin blog.csdn.net/Kirihara_Yukiho/article/details/131511019