С помощью инструмента Rest Client Chrome я загружаю файл JSON, например sample.json, в свой запрос.Получение ниже исключения.Пробовал передавать заголовок как multipart / form-data, а также не передавать последний.Но результат тот же.Я правильно делаю?
the request
was rejected because no multipart boundary was found
..
public HttpEntity<?> uploadJsonFile(@PathVariable("jsonFileID") String
jsonFileID, @RequestParam("file") MultipartFile file) throws Exception
{
// Some code here
}
..
Failed to parse multipart
servlet request; nested exception is java.io.IOException:
org.apache.tomcat.util.http.fileupload.FileUploadException: the request
was rejected because no multipart boundary was found] with root cause
org.apache.tomcat.util.http.fileupload.FileUploadException: the request
was rejected because no multipart boundary was found
at org.apache.tomcat.util.http.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:831) ~[tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.tomcat.util.http.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:256) ~[tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:280) ~[tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.connector.Request.parseParts(Request.java:2884) ~[tomcat-embed-core-8.5.32.jar:8.5.32]
at org.apache.catalina.connector.Request.parseParameters(Request.java:3232) ~[tomcat-embed-core-8.5.32.jar:8.5.32]