I am building a Spring MVC Web application. I have created applicationContext.xml file. I am trying to connect to mysql database. But when I define datasource bean in applicationContext.xml the
tomcat server starts and it says `404- resource not found`.
If I remove all the beans from the applicationContext.xml the project runs properly.
What am I doing wrong? It is said that datasources should be defined in the applicationContext.xml but is there other way to define datasource?
Here is my
applicationContext.xml file.
And this is my
web.xml file
Can you please point out what am I doing wrong here?