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:
Amitabh Tiwari 2021-02-20 04:47:31 +05:30 committed by GitHub
parent 07eab8386c
commit c29b355b02
1 changed files with 0 additions and 6 deletions

View File

@ -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