1. 新建maven项目 2. 添加web.xml 自动生成web.xml文件 3. 配置tomcat 依次点击蓝色背景 点击Deployment 4. 添加index.jsp运行测试 运行成功: 5. 导入依赖 spring-mvc