Bael 4804 config update (#10505)
* Removed the configuration annotation * Removed @confiuration Co-authored-by: Amitabh Tiwari <Amitabh.Tiwari@maersk.com>
This commit is contained in:
parent
07eab8386c
commit
c29b355b02
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue