赞
踩
报错的原因是feign默认使用ribbon作为负载均衡调用的:
我的feign调用类如下:
- package com.wm.blog_admin.feign;
-
- import com.wm.blog_admin.feign.factory.PictureClientFallbackFactory;
- import com.wm.blog_common.constatnt.CommonConstant;
- import com.wm.blog_common.domain.TFileDO;
- import com.wm.blog_common.result.Result;
- import com.wm.blog_config.config.CustomFeignConfig;
- import org.springframework.cloud.openfeign.FeignClient;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.PathVariable;
-
- /***
- * @ClassName: PictureFeignClient
- * @Description: picture feign调用
- * @Author: wm_yu
- * @Create_time: 16:39 2020-3-26
- */
- @FeignClient(value = CommonConstant.PIC
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。