-
Notifications
You must be signed in to change notification settings - Fork 804
Description
Hi,
Below is my technology stack:
Spring Boot --> 2.1.6.RELEASE
spring-cloud-starter-openfeign --> 2.1.2.RELEASE
feign-form-spring --> 3.3.0
I have following code in my Interface of Rest Controller Implementation
@PostMapping(value = "/files", consumes = {MediaType.MULTIPART_FORM_DATA_VALUE})
ResponseEntity<Output> createFile(
@RequestPart("file") MultipartFile file,
@RequestPart("properties") Map<String, String> properties);
My Feign client just extends this interface and it has Feign Client Annotation like below
@FeignClient(name = "feign-client", url = "${host}/store/v1/", configuration = FeignConfig.class)
public interface StoreClient extends StoreInterface {
}
When I try to start my Spring Boot app, I get below exception
Caused by: java.lang.IllegalStateException: Method has too many Body parameters: public abstract org.springframework.http.ResponseEntity au.com.macquarie.bfs.ml.store.v1.StoreClient.createFile(org.springframework.web.multipart.MultipartFile,java.util.Map)
I tried googling and adopting many solutions, but looks like this is not supported yet.
Can some one help me resolve this and get around?