解决步骤如下:
✅ 检查 Artifact 配置:
打开 IntelliJ IDEA 菜单:
File → Project Structure(项目结构) → 选择左侧的 Artifacts。
确认是否存在一个 chap3:war 类型的 artifact。
如果没有:点击左上角的 + → 选择 Web Application: Exploded → 选择 chap3 模块。
设置 Output Directory 为 out/artifacts/chap3_war_exploded。
检查 Web Resource Directory 是否添加了 WebRoot 目录(你的 JSP 就在这个目录下),并设置路径为 /。
点击 Apply 和 OK 保存配置。帮我谁能看看
