Class RestTemplateAutoConfiguration

java.lang.Object
cn.herodotus.engine.rest.autoconfigure.RestTemplateAutoConfiguration

@AutoConfiguration(after=org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration.class) public class RestTemplateAutoConfiguration extends Object

Description: Rest Template Configuration

Author:
: gengwei.zheng
Date:
: 2020/5/29 17:32
  • Constructor Details

    • RestTemplateAutoConfiguration

      public RestTemplateAutoConfiguration()
  • Method Details

    • postConstruct

      @PostConstruct public void postConstruct()
    • getRestTemplate

      @Bean @LoadBalanced public org.springframework.web.client.RestTemplate getRestTemplate(org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder)
      使用 @LoadBalanced 注解表示使用 loadbalancer 实现客户端负载均衡
      Returns:
      RestTemplate