Once I run my application it shows following error in the console. I studied this question but its answer was not helpful.
As I expected the problem was with the dependencies. I could solve the issue by updating my pom.xml and cleaning the project.
pom.xml
4.0.0
Spring2
Spring2
0.0.1-SNAPSHOT
Spring2
http://maven.apache.org
4.1.5.RELEASE
org.springframework
spring-core
${spring.version}
org.springframework
spring-web
${spring.version}
org.springframework
spring-webmvc
${spring.version}
junit
junit
4.0
test