I am new to Spring MVC and i have some problems related to running the project with tomcat 10.1.16 (Ubuntu) on intellij idea, specifically as follows:
- If I create the index.jsp file in the WEB-INF folder, when running it only shows the content in the index.jsp file.
- If I delete the index.jsp and replace it in the MainController class with a RequestMapping to the home.jsp file, it immediately reports a 404 Not Found error.
This is my project structure:
project structure
And it works with just index.jsp file
and it gives error if i delete index.jsp
error
My Project: .git
I have tried many ways but can not run
I hope everyone can explain to me