feign.form.spring.SpringFormEncoder Java Examples
The following examples show how to use
feign.form.spring.SpringFormEncoder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FeignMultipartSupportConfiguration.java From fw-spring-cloud with Apache License 2.0 | 5 votes |
/** * Feign Spring 表单编码器 * @return 表单编码器 */ @Bean @Primary @Scope("prototype") public Encoder multipartEncoder(){ return new SpringFormEncoder(); }
Example #2
Source File: FeignClientsConfiguration.java From spring-cloud-openfeign with Apache License 2.0 | 5 votes |
private Encoder springEncoder(ObjectProvider<AbstractFormWriter> formWriterProvider) { AbstractFormWriter formWriter = formWriterProvider.getIfAvailable(); if (formWriter != null) { return new SpringEncoder(new SpringPojoFormEncoder(formWriter), this.messageConverters); } else { return new SpringEncoder(new SpringFormEncoder(), this.messageConverters); } }
Example #3
Source File: SpringEncoder.java From spring-cloud-openfeign with Apache License 2.0 | 4 votes |
public SpringEncoder(ObjectFactory<HttpMessageConverters> messageConverters) { this.springFormEncoder = new SpringFormEncoder(); this.messageConverters = messageConverters; }
Example #4
Source File: SpringEncoder.java From spring-cloud-openfeign with Apache License 2.0 | 4 votes |
public SpringEncoder(SpringFormEncoder springFormEncoder, ObjectFactory<HttpMessageConverters> messageConverters) { this.springFormEncoder = springFormEncoder; this.messageConverters = messageConverters; }
Example #5
Source File: FeignMultipartSupportConfig.java From agile-service-old with Apache License 2.0 | 4 votes |
@Bean public Encoder feignFormEncoder() { return new SpringFormEncoder(new SpringEncoder(messageConverters)); }
Example #6
Source File: LocFeignEncoderConfig.java From loc-framework with MIT License | 4 votes |
@Bean public Encoder feignFormEncoder() { return new SpringFormEncoder(); }
Example #7
Source File: Client.java From feign-form with Apache License 2.0 | 4 votes |
@Bean public Encoder feignEncoder () { return new SpringFormEncoder(new SpringEncoder(messageConverters)); }
Example #8
Source File: FeignConfiguration.java From spring-cloud-yes with Apache License 2.0 | 2 votes |
/** * 支持上传 * * @return SpringFormEncoder */ @Bean public Encoder feignFormEncoder() { return new SpringFormEncoder(); }
Example #9
Source File: OpcOssFeignApi.java From paascloud-master with Apache License 2.0 | 2 votes |
/** * Feign form encoder encoder. * * @return the encoder */ @Bean public Encoder feignFormEncoder() { return new SpringFormEncoder(); }