在你的pom.xml添加上需要依赖的包就可以了
在pom.xml 加上
然后右击项目 Run As Maven install 等它执行完,说明 springMVC的jar添加进去了。