I need to send a file alongside with a json to my Spring Controller. I have the following controller class:
@Controller
@RequestMapping(\"/perform\")
public cla
It's maybe related to your request mapping annotation. I think accept
value is missing to determine what service can accept :
Example :
@RequestMapping(path = "gopdf", method = RequestMethod.POST, consumes = { "multipart/mixed" }, accept = MediaType.MULTIPART_FORM_DATA_VALUE)
Import :
import org.springframework.http.MediaType;
Documentation/API : http://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/http/MediaType.html