我试图使用ExchangeFilterFunctions编写WebTestClient的单元测试,但是在对webTestClient进行变异和添加筛选器时会出现此错误。java.lang.IllegalStateException: No "WebTestClient-Request-Id" header
RequestPredicates.GET("&
SpringBootTest.WebEnvironment.RANDOM_PORT) private WebTestClientwebTestClient;
public void postTest() { Form form = newform.setName("Test1");
form.setDescripti
正如WebTestClient的javadoc所描述的:This client can connect to any server over HTTP。webTestClient;
public void test_hello() { .get()= webTestClient.mutate().baseUrl("http://localhost:8080").build();/