使用maven构建Spring项目 1.新建maven项目 2.按照下图新建文件夹,java、resources、test 3.新建Spring的配置文件applicationContext.xml 4.Spring的项目结构如下: 5.在pom.xml中添加Spring的依赖