Annotation Type 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.- Since:
- 1.4.0
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
registerRestTemplate
If aRestTemplate
bean should be registered.
Element Detail
registerRestTemplate
boolean registerRestTemplate
If aRestTemplate
bean should be registered. Defaults tofalse
with the assumption that theRestTemplateBuilder
will be used.- Returns:
- if a
RestTemplate
bean should be added.
- Default:
- false