1、创建maven web项目

2.
配置pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>spring1</groupId>
    <artifactId>spring1</artifactId>
    <packaging>war</packaging>
    <version>0.0.1-SNAPSHOT</version>
    <name>spring1 Maven Webapp</name>
    <url>http://maven.apache.org</url>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>4.3.0.RELEASE</version>
        </dependency>

<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>4.0.0-b07</version>
            <scope>provided</scope>
        </dependency>

</dependencies>
    <build>
        <finalName>spring1</finalName>
    </build>
</project>
3、 配置web.xml

4、创建配置文件

最新文章

  1. 【Cocos2d-x游戏开发】Cocos2d-x中的数据存储技术
  2. git命令笔记
  3. requst方法简单用一下
  4. centeros iptable模板文件
  5. jq获取表单值与赋值代码
  6. Spring MVC 教程
  7. UVA 6199 不定根最小树形图
  8. C#同步数据库的数据到Neo4J
  9. 将一段含有0的字符数组赋给string
  10. Android SoundPool 的使用以及原理分析
  11. UIActivityIndicatorView的详细使用(加载菊花)
  12. 安装PyQt5之后mayavi和VTK不能使用
  13. visual filters 滤镜 ie
  14. lsof -i
  15. 从零开始,搭建 AI 音箱 Alexa 语音服务
  16. rabbitMQ 3.6.15生产环境
  17. mybatis-plus 从2.x到3.x升级指南
  18. Python代码注释应该怎么写?
  19. 160506、Spring mvc新手入门(11)-返回json 字符串的其他方式
  20. sublime 插件安装之sublime highlight 如何优雅拷贝代码到word

热门文章

  1. 最小生成树,并查集的思想 nyoj1239
  2. Redmine 数据库连接错误
  3. Barn Repair
  4. springmvc不进入Controller导致404
  5. k8s-资源指标API及自定义指标API-二十三
  6. ASP.NET Core MVC 2.x 全面教程_ASP.NET Core MVC 14. ASP.NET Core Identity 入门
  7. 斯坦福CS231n—深度学习与计算机视觉----学习笔记 课时24&amp;&amp;25
  8. Eclipse中,open declaration;open implementation;open super implementation的区别
  9. bzoj 2460: [BeiJing2011]元素【线性基+贪心】
  10. bzoj 1207: [HNOI2004]打鼹鼠【dp】