类 FeignConfig

java.lang.Object
com.cdkjframework.cloud.config.FeignApiInterceptor
com.cdkjframework.cloud.config.FeignConfig
所有已实现的接口:
feign.RequestInterceptor

@Configuration public class FeignConfig extends FeignApiInterceptor
  • 构造器详细资料

    • FeignConfig

      public FeignConfig()
  • 方法详细资料

    • feignRetryer

      @Bean public feign.Retryer feignRetryer()
      feign Retryer
      返回:
      返回 Retryer
    • feignOption

      @Bean public feign.Request.Options feignOption()
      feignOption
      返回:
      返回 Request.Options
    • getClient

      @Bean @ConditionalOnProperty("com.cdkjframework.cloud.client.FeignClient") public FeignClient getClient() throws NoSuchAlgorithmException, KeyManagementException
      默认不注入,如果yml配置里有 com.cdkjframework.cloud.client.FeignClient 才注入
      返回:
      返回结果
      抛出:
      NoSuchAlgorithmException - 异常信息
      KeyManagementException - 异常信息