![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Feign
Morn_Li
此人不懒,就是什么都没有写
展开
-
通过Feign服务实现文件上传
一、单文件上传 文件服务 @PostMapping("/upload_file") public void upload(@RequestParam(“file”) MultipartFile file){ } Fegin服务 RestController层: @PostMapping("/upload_file") public void upload(@RequestParam(“file”)...原创 2019-02-18 17:35:11 · 2730 阅读 · 0 评论 -
浅析Feign与RestTemplate
背景:Spring Boot 微服务架构与多租户模式 在微服务架构中,各服务之间的通信使用@FeignClient绑定服务名就能简单方便的实现接口调用。 @FeignClient(serviceId = "source") public interface CoreClientService { } 但是在多租户模式下,为保证租户tanancyId的数据隔离,为每一个租户资源部署一个服务,...原创 2019-07-24 16:16:46 · 2424 阅读 · 0 评论