> For the complete documentation index, see [llms.txt](https://potoyang.gitbook.io/spring-in-action-v4/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://potoyang.gitbook.io/spring-in-action-v4/di-2-bu-fen-web-zhong-de-spring.md).

# 第二部分　Web 中的 Spring

Spring 通常用来开发 Web 应用。因此，在第 2 部分中，将会看到如何使用 Spring 的 MVC 框架为应用程序添加 Web 前端。

在 **第 5 章 构建 Spring Web 应用** 中，你将会学习到 Spring MVC 的基本用法，它是构建在 Spring 理念之上的一个 Web 框架。我们将会看到如何编写处理 Web 请求的控制器以及如何透明地绑定请求参数和负载到业务对象上，同时它还提供了数据检验和错误处理的功能。

在 **第 6 章 渲染 Web 视图** 中，将会基于第 5 章的内容继续讲解，展现了如何得到 Spring MVC 控制器所生成的模型数据，并将其渲染为用户浏览器中的 HTML。这一章的讨论包括 JavaServer Pages（JSP）、Apache Tiles 和 Thymeleaf 模板。

在 **第 7 章 Spring MVC 的高级技术** 中，将会学习到构建 Web 应用时的一些高级技术，包括自定义 Spring MVC 配置、处理 multipart 文件上传、处理异常以及使用 flash 属性跨请求传递数据。

**第 8 章 使用 Spring Web Flow** 将会为你展示如何使用 Spring Web Flow 来构建会话式、基于流程的 Web 应用程序。

鉴于安全是很多应用程序的重要关注点，因此 **第 9 章 保护 Web 应用** 将会为你介绍如何使用 Spring Security 来为 Web 应用程序提供安全性，保护应用中的信息。
