注释类型 AutoConfigureWebTestClient
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Inherited @ImportAutoConfiguration @PropertyMapping("spring.test.webtestclient") public @interface AutoConfigureWebTestClient
Annotation that can be applied to a test class to enable aWebTestClient
. At the moment, only WebFlux applications are supported.- 从以下版本开始:
- 2.0.0
- 另请参阅:
WebTestClientAutoConfiguration
可选元素概要
可选元素 修饰符和类型 可选元素 说明 String
timeout
The timeout duration for the client (in any format handled byDuration.parse(CharSequence)
).
元素详细资料
timeout
String timeout
The timeout duration for the client (in any format handled byDuration.parse(CharSequence)
).- 返回:
- the web client timeout
- 默认值:
- ""