org.zodiac.autoconfigure.feign.FeignClientConfiguration Maven / Gradle / Ivy
package org.zodiac.autoconfigure.feign;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.zodiac.autoconfigure.feign.condition.ConditionalOnFeignEnabled;
/**
* Feign context auto configuration(consumer/client|provider/server).
*
*/
//@SpringBootConfiguration
@ConditionalOnFeignEnabled
@ConditionalOnClass(value = {feign.Client.class, org.zodiac.feign.core.consumer.FeignConsumerClientProviderType.class})
public class FeignClientConfiguration {
public FeignClientConfiguration() {
super();
}
@Bean
@ConditionalOnMissingBean
@ConfigurationProperties(prefix = org.zodiac.feign.core.constants.FeignSystemPropertiesConstants.FEIGN_PREFIX, ignoreInvalidFields = true)
protected FeignConfigProperties feignConfigProperties() {
return new FeignConfigProperties();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy