CompanyService.java 692 字节
package cn.dnect.companyconsumer.service;

import cn.dnect.companyconsumer.service.hystrix.CompanyServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created with IntelliJ IDEA.
 * Date: 2019/2/18
 * Time: 14:52
 *
 * @author: 二条
 * Description:
 */
@FeignClient(value = "company-service", fallback = CompanyServiceHystrix.class)
public interface CompanyService {

    @RequestMapping(value = "hi", method = RequestMethod.GET)
    String sayHi(@RequestParam String name);
}