wuxw
2019-06-02 cebc50ae8295dd24e2fd5ba0d4d236459a5190a3
java110-core/src/main/java/com/java110/core/feign/FeignConfiguration.java
@@ -1,13 +1,32 @@
package com.java110.core.feign;
import feign.Feign;
import feign.codec.ErrorDecoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;
/**
 *
 */
@Configuration
public class FeignConfiguration {
    /**
     *
     * @return
     */
    @Bean
    public ErrorDecoder errorDecoder(){
    public ErrorDecoder errorDecoder() {
        return new UserErrorDecoder();
    }
    /**
     *
     * @return
     */
   /* @Bean
    @Scope("prototype")
    public Feign.Builder feignBuilder() {
        return Feign.builder();
    }*/
}