测试
要测试使用WebClient
,您可以使用模拟 Web 服务器,例如 OkHttp MockWebServer。查看示例
的用途,请查看WebClientIntegrationTests
在 Spring Framework 测试套件中,或者使用static-server
示例。
要测试使用WebClient
,您可以使用模拟 Web 服务器,例如 OkHttp MockWebServer。查看示例
的用途,请查看WebClientIntegrationTests
在 Spring Framework 测试套件中,或者使用static-server
示例。