使用maven建立工程,使用模板,建立后,可直接部署。
在pom.xml中添加包:
<dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.2.4.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>4.2.4.RELEASE</version> </dependency> </dependencies>这是springMVC所需要的最少的包。
本文介绍如何使用Maven快速建立Spring MVC项目,并部署运行。通过在pom.xml文件中添加必要的依赖,如spring-context和spring-webmvc,来实现基本的Spring MVC功能。
2096

被折叠的 条评论
为什么被折叠?



