# 第二部分 集成 Spring

第 2 部分的章节介绍了一些有助于将 Spring 应用程序与其他应用程序集成在一起的主题。

第 6 章通过讨论如何在 Spring 中编写 REST api 来扩展第 2 章中开始的关于 Spring MVC 的讨论。我们将了解如何在 Spring MVC 中定义 REST 端点，启用超链接 REST 资源，以及如何使用 Spring Data REST 自动生成基于存储库的 REST 端点。第 7 章切换透视图，以展示 Spring 应用程序如何使用 REST API。在第 8 章中，我们将讨论如何使用异步通信使 Spring 应用程序能够使用 Java 消息服务（JMS）、RabbitMQ 和 Kafka 发送和接收消息。最后，第 9 章讨论了使用 Spring Integration 项目的声明性应用程序集成。我们将介绍实时处理数据、定义集成流以及与外部系统（如电子邮件和文件系统）的集成。<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://potoyang.gitbook.io/spring-in-action-v5/di-er-bu-fen-ji-cheng-spring.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
