Solution
Reason 1)
有可能在xml文件中没有添加 spring web 依赖,先将spring-web.jar 添加上
Reason 2)
添加了spring-web依赖后如果还是出现该问题,很可能没有将 Maven Dependencies 添加到环境中,可按照如下步骤操作解决
1) Open project properties and select Choose Deployment Assembly. Then select option “Java Build Path Entries”.
2) Click Next and select all jar files. Click Finish.
3) Deployment assembly will look like this. Click Apply.
Above fixes will solve the issue.