netflix-feign

Can I configure a @FeignClient url using a properties/yml file?

断了今生、忘了曾经 提交于 2019-11-27 12:06:10
问题 My goal is to create a strategy of different steps to get from a point-to-point communication between 2 components to a "full blown netflix" style of communication using eureka, ribbon, hystrix. With each iteration I want to add more while I try to limit the amount of changes to the actual code. Feign is my preferred client side framework to make this happen. First step is to create a FeignClient to communicate to the server: @FeignClient(url = "http://localhost:9000") interface Client {

File Upload Using Feign - multipart/form-data

谁说我不能喝 提交于 2019-11-27 04:43:00
问题 I'm trying to accomplish a multipart file upload using feign, but I can't seem to find a good example of it anywhere. I essentially want the HTTP request to turn out similar to this: ... Content-Type: multipart/form-data; boundary=AaB03x --AaB03x Content-Disposition: form-data; name="name" Larry --AaB03x Content-Disposition: form-data; name="file"; filename="file1.txt" Content-Type: text/plain ... contents of file1.txt ... --AaB03x-- Or even... ------fGsKo01aQ1qXn2C Content-Disposition: form