lidongdong
2022-11-07 b0f93f0cc2394d647dc3d7e6fa72037b4c76eaae
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.springcloudme.servicetp;
 
import com.springcloudme.servicetp.UserClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
 
@FeignClient(value = "service-api", fallback = UserClientFallback.class)
public interface UserClient {
 
    @RequestMapping("/user/hi") // 对应 service-api 服务的 /user/hi的绝对路由
    String hi();
 
}