feign
珍惜当下668
这个作者很懒,什么都没留下…
展开
-
feign调用中文参数被encode编译
原因:在实现一个feign调用时使用了Post请求,并且拼接url参数,name传值为中文时被encode转译,且最终接取数据之前未被decode转译回,问题探索:feign:@FeignClient(name = "service-test")public interface TestServiceApi { @PostMapping("/test/abc") public String getTestNo(@RequestParam("code") String code, @R原创 2020-07-02 21:15:42 · 4816 阅读 · 0 评论 -
feign服务之间调用如何带token
feign服务调用如何带tokenimport javax.servlet.http.HttpServletRequest;import org.springframework.context.annotation.Configuration;import org.springframework.web.context.request.RequestContextHolder;import org.springframework.web.context.request.ServletRequest原创 2020-06-28 16:47:11 · 1658 阅读 · 0 评论