第 1 步:创建 Java 项目 新建项目,选择Spring - 勾选Web Application -next-编写新的项目名称-finish 第二步:创建源文件 --- 用户Bean ,beans.xml, 测试类Test ,目录结构如下