feign
枫灵小宇
这个作者很懒,什么都没留下…
展开
-
Feign接口调用添加请求头信息
文章目录1.方式一: @RequestHeader注解添加参数到请求头2.方式二: 实现RequestInterceptor接口: feign全局设置3.方式三: aop切面3.1.注解3.2.切面3.3.适配类3.4.接口1.方式一: @RequestHeader注解添加参数到请求头//app-server-name:要调用的服务名//appcontext:要调用的服务的上下文@FeignClient(value="${app.feign.url:app-server-name/appcontex原创 2021-04-15 19:58:24 · 13663 阅读 · 8 评论 -
spring-cloud———feign多文件上传、文件下载
文章目录1.feign配置类2.多文件上传3.文件下载1.feign配置类package com.qin.common.util;import feign.codec.Encoder;import org.springframework.beans.factory.ObjectFactory;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.autoconf原创 2020-09-30 14:44:24 · 340 阅读 · 2 评论