> 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/untitled-1.md).

# 第 6 章　渲染 Web 视图

本章内容：

* 将模型数据渲染为 HTML
* 使用 JSP 视图
* 通过 tiles 定义视图布局
* 使用 Thymeleaf 视图

上一章主要关注于如何编写处理 Web 请求的控制器。我们也创建了一些简单的视图，用来渲染控制器产生的模型数据，但我们并没有花太多时间讨论视图，也没有讨论控制器完成请求到结果渲染到用户的浏览器中的这段时间内到底发生了什么，而这正是本章的主要内容。
