|
|
@ -11,8 +11,13 @@ import com.epmet.feign.fallback.GovProjectOpenFeignClientFallback; |
|
|
|
import com.epmet.resi.mine.dto.from.MyPartProjectsFormDTO; |
|
|
|
import feign.codec.Encoder; |
|
|
|
import feign.form.spring.SpringFormEncoder; |
|
|
|
import org.springframework.beans.factory.ObjectFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.boot.autoconfigure.http.HttpMessageConverters; |
|
|
|
import org.springframework.cloud.openfeign.FeignClient; |
|
|
|
import org.springframework.cloud.openfeign.support.SpringEncoder; |
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
import org.springframework.http.MediaType; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
@ -72,9 +77,13 @@ public interface EpmetThirdOpenFeignClient { |
|
|
|
Result blockChainProcessProject(@RequestBody BlockChainProcessProjectFormDTO input); |
|
|
|
|
|
|
|
class MultipartSupportConfig { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ObjectFactory<HttpMessageConverters> messageConverters; |
|
|
|
|
|
|
|
@Bean |
|
|
|
public Encoder feignFormEncoder() { |
|
|
|
return new SpringFormEncoder(); |
|
|
|
return new SpringFormEncoder(new SpringEncoder(messageConverters)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|