Bael 4804 config update (#10505)
* Removed the configuration annotation * Removed @confiuration Co-authored-by: Amitabh Tiwari <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
Amitabh Tiwari
parent
07eab8386c
commit
c29b355b02
-6
@@ -4,19 +4,13 @@ import org.springframework.beans.factory.ObjectFactory;
|
||||
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
|
||||
import org.springframework.cloud.openfeign.support.SpringEncoder;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Primary;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import feign.codec.Encoder;
|
||||
import feign.form.spring.SpringFormEncoder;
|
||||
|
||||
@Configuration
|
||||
public class FeignSupportConfig {
|
||||
@Bean
|
||||
@Primary
|
||||
@Scope("prototype")
|
||||
public Encoder multipartFormEncoder() {
|
||||
return new SpringFormEncoder(new SpringEncoder(new ObjectFactory<HttpMessageConverters>() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user