update 更新feign关于熔断注释
This commit is contained in:
parent
f566c39026
commit
237b598264
@ -10,7 +10,9 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|||||||
* feign测试service
|
* feign测试service
|
||||||
* 规范接口 Service 无感调用
|
* 规范接口 Service 无感调用
|
||||||
* 常量管理请求路径 更加规范
|
* 常量管理请求路径 更加规范
|
||||||
* 自定义容错处理 安全可靠
|
* 自定义容错处理 安全可靠 (需自行配置熔断器)
|
||||||
|
* 增加 feign 的目的为使 http 请求接口化
|
||||||
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@FeignClient(
|
@FeignClient(
|
||||||
|
@ -10,6 +10,8 @@ import org.springframework.stereotype.Component;
|
|||||||
* 自定义封装结构体熔断
|
* 自定义封装结构体熔断
|
||||||
* 需重写解码器 根据自定义实体 自行解析熔断
|
* 需重写解码器 根据自定义实体 自行解析熔断
|
||||||
*
|
*
|
||||||
|
* 熔断器需要自行添加配置
|
||||||
|
*
|
||||||
* @see {com.ruoyi.framework.config.FeignConfig#errorDecoder()}
|
* @see {com.ruoyi.framework.config.FeignConfig#errorDecoder()}
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user