注释类型 AutoConfigureWebClient
@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited @ImportAutoConfiguration @PropertyMapping("spring.test.webclient") public @interface AutoConfigureWebClient
Annotation that can be applied to a test class to enable and configure auto-configuration of web clients.- 从以下版本开始:
- 1.4.0
可选元素概要
可选元素 修饰符和类型 可选元素 说明 boolean
registerRestTemplate
If aRestTemplate
bean should be registered.
元素详细资料
registerRestTemplate
boolean registerRestTemplate
If aRestTemplate
bean should be registered. Defaults tofalse
with the assumption that theRestTemplateBuilder
will be used.- 返回:
- if a
RestTemplate
bean should be added.
- 默认值:
- false