批注接口 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.
从以下版本开始:
1.4.0
作者:
Stephane Nicoll, Phillip Webb
  • 元素详细资料

    • registerRestTemplate

      boolean registerRestTemplate
      If a RestTemplate bean should be registered. Defaults to false with the assumption that the RestTemplateBuilder will be used.
      返回:
      if a RestTemplate bean should be added.
      默认值:
      false