二条
authored
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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);
}
|