首先创建一个maven
1.点击file – new – Project 进入创建项目窗口
2.选择mave – Create from archetype – webapp
3.填入项目名称以及版本号
4.点击界面右上角的Project Structure 编辑项目模块 标记对应的文件夹(先创建test 文件夹,然后标记为测试文件夹)
5。编辑pom的xml文件(<>必须要先编辑pom文件加入spring的依赖,否则在resources文件夹中无法创建spring的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.