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
- Author:
- Stephane Nicoll, Phillip Webb
-
Optional Element Summary
-
Element Details
-
registerRestTemplate
boolean registerRestTemplateIf 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
-