All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fun.fengwk.convention4j.spring.cloud.starter.feign.FeignClientAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.1.14
Show newest version
package fun.fengwk.convention4j.spring.cloud.starter.feign;

import feign.RequestInterceptor;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;

/**
 * @author fengwk
 */
@ConditionalOnClass(RequestInterceptor.class)
@AutoConfiguration
public class FeignClientAutoConfiguration {

    @Bean
    public TracerFeignInterceptor tracerFeignInterceptor() {
        return new TracerFeignInterceptor();
    }

    @Bean
    public FeignInternalInvokerInterceptor feignInternalInvokerInterceptor() {
        return new FeignInternalInvokerInterceptor();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy