2 changed files with 31 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||
package com.epmet.feign; |
|||
|
|||
|
|||
import com.epmet.commons.tools.constant.ServiceConstant; |
|||
import com.epmet.dto.feign.fallback.GovVoiceFeignClientFallBack; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
|
|||
/** |
|||
* 本服务对外开放的API,其他服务通过引用此client调用该服务 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/6/4 16:01 |
|||
*/ |
|||
@FeignClient(name = ServiceConstant.GOV_VOICE_SERVER, fallback = GovVoiceFeignClientFallBack.class) |
|||
public interface GovVoiceOpenFeignClient { |
|||
|
|||
|
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.epmet.feign; |
|||
|
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 本服务对外开放的API,其他服务通过引用此client调用该服务 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/6/4 16:01 |
|||
*/ |
|||
@Component |
|||
public class GovVoiceOpenFeignClientFallback implements GovVoiceOpenFeignClient{ |
|||
} |
Loading…
Reference in new issue