I have created a Spring MVC project where I used:
jakarta 6.0 and spring-webmvc 6.2 in pom.xml
Dynamic Web Module 5
JDK 23
I configured the Dispatcher Servlet in web.xml, then set up the View Resolver in spring-servlet.xml. After that, I created a Controller and placed index.jsp inside the WEB-INF/views/ folder.
The server starts successfully, but I always get a 404 error:
"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists."
Here is my console Output Attached too