Annotation Interface AutoConfigureWebClient
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@AutoConfigureJson
@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
- Author:
- Stephane Nicoll, Phillip Webb
-
Optional Element Summary
Optional Elements
-
Element Details
-
registerRestTemplate
boolean registerRestTemplateIf aRestTemplatebean should be registered. Defaults tofalsewith the assumption that theRestTemplateBuilderwill be used.- Returns:
- if a
RestTemplatebean should be added.
- Default:
- false
-