|
对于最新的稳定版本,请使用 Spring Framework 7.0.6! |
测试
要测试使用WebClient的代码,你可以使用一个模拟Web服务器,例如
OkHttp MockWebServer。要查看其使用的示例,请参阅
WebClientIntegrationTests
在Spring Framework测试套件中的示例或
static-server
在OkHttp仓库中的示例。
|
对于最新的稳定版本,请使用 Spring Framework 7.0.6! |
要测试使用WebClient的代码,你可以使用一个模拟Web服务器,例如
OkHttp MockWebServer。要查看其使用的示例,请参阅
WebClientIntegrationTests
在Spring Framework测试套件中的示例或
static-server
在OkHttp仓库中的示例。