Annotation Interface 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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If a RestTemplate bean should be registered.
  • Element Details

    • registerRestTemplate

      boolean registerRestTemplate
      If a RestTemplate bean should be registered. Defaults to false with the assumption that the RestTemplateBuilder will be used.
      Returns:
      if a RestTemplate bean should be added.
      Default:
      false