Integration of SpringBoot and jsp in idea, 404 page not found

Report the following error:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Sun Oct 04 21:23:05 CST 2020
There was an unexpected error (type=Not Found, status=404).
/WEB-INF/jsp/user/details.jsp
Insert picture description here

First find the following solutions online:

Write the path of your own module or project in the working directory
Insert picture description here

But after adding it still reported an error

After a long time of exploration, it was found that the name of the webapp was wrong. Because of the
1, right-click in the idea to add framework support , select Add Framework Support
Insert picture description here
2. After selecting Web Application, it came out as web instead of webapp directory, so this error was reported.
Insert picture description here

After changing the webapp name, the project can start normally

Insert picture description here

Of course, the path in the project structure should also be changed

Insert picture description here

Start screenshot normally

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44635198/article/details/108922900