I'm trying to learn Spring framework using Eclipse, and found this tutorial:
I followed up to the 29:36 min marker and it works in the video but not for me.
It's supposed to print the following to the console(just to see if it works) : "here"
I've followed the tutorial a few times but getting error:
WARNING: No mapping found for HTTP request with URI [/DemoMVC/add] in DispatcherServlet with name 'telusko'
Here is the info prior to that:
Here is the jsp file:
the web.xml file:
The AddController.java file:
The telusko-servlet.xml file located in the webapp/WEB-INF/ :
- using Eclipse IDE 2021-03(4.19.0)
- Tomcat 8.0 & tried on Tomcat 8.5
the tutorial starts out by starting maven project in Eclipse, then adds the Spring framework using maven.
I'm confused on the @RequestMapping part, and it is defined in the AddController servlet, but I'm not sure what the error comes up?
Any additional info required, let me know.
Beginner in Spring.