package demo.helloconsumer;

import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class HelloFeignFallbackFactory implements FallbackFactory<HelloFeignFallback> {

    @Override
    public HelloFeignFallback create(Throwable cause) {
        return new HelloFeignFallback(cause);
    }

}


/*********************************************************
 * 作者：孙卫琴                                   
 * 来源：《Spring Cloud Alibaba微服务开发零基础入门到实战》源代码  
 * 技术支持网址：www.javathinker.net/alibaba                    
 *********************************************************/
