# 8.2.3. 反应式服务器资源配置

自动配置 Reactor Netty 或 Jetty 服务器时，Spring Boot 将创建特定的 bean，为服务器实例提供 HTTP 资源：`ReactorResourceFactory`或`JettyResourceFactory`。

默认情况下，这些资源也将与 Reactor Netty 和 Jetty 客户端共享，以获得最佳性能，前提是：

* 服务器和客户端使用相同的技术
* 客户端实例是使用Spring Boot 自动配置的 bean构建的`WebClient.Builder`

`ReactorResourceFactory`开发人员可以通过提供自定义或bean来覆盖 Jetty 和 Reactor Netty 的资源配置`JettyResourceFactory`- 这将应用于客户端和服务器。

[您可以在WebClient 运行时部分](https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#io.rest-client.webclient.runtime)了解有关客户端资源配置的更多信息。


---

# 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://doc.shiker.tech/spring-boot-can-kao-wen-dang/8.-wang-luo/8.2-fan-ying-shi-wang-luo-ying-yong-cheng-xu/8.2.3.-fan-ying-shi-fu-wu-qi-zi-yuan-pei-zhi.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.
