springmvc+maven搭建web项目之二 通过另一种方式配置spring
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、创建配置文件
最新文章
- 【Cocos2d-x游戏开发】Cocos2d-x中的数据存储技术
- git命令笔记
- requst方法简单用一下
- centeros iptable模板文件
- jq获取表单值与赋值代码
- Spring MVC 教程
- UVA 6199 不定根最小树形图
- C#同步数据库的数据到Neo4J
- 将一段含有0的字符数组赋给string
- Android SoundPool 的使用以及原理分析
- UIActivityIndicatorView的详细使用(加载菊花)
- 安装PyQt5之后mayavi和VTK不能使用
- visual filters 滤镜 ie
- lsof -i
- 从零开始,搭建 AI 音箱 Alexa 语音服务
- rabbitMQ 3.6.15生产环境
- mybatis-plus 从2.x到3.x升级指南
- Python代码注释应该怎么写?
- 160506、Spring mvc新手入门(11)-返回json 字符串的其他方式
- sublime 插件安装之sublime highlight 如何优雅拷贝代码到word
热门文章
- 最小生成树,并查集的思想 nyoj1239
- Redmine 数据库连接错误
- Barn Repair
- springmvc不进入Controller导致404
- k8s-资源指标API及自定义指标API-二十三
- ASP.NET Core MVC 2.x 全面教程_ASP.NET Core MVC 14. ASP.NET Core Identity 入门
- 斯坦福CS231n—深度学习与计算机视觉----学习笔记 课时24&;&;25
- Eclipse中,open declaration;open implementation;open super implementation的区别
- bzoj 2460: [BeiJing2011]元素【线性基+贪心】
- bzoj 1207: [HNOI2004]打鼹鼠【dp】