MultipartFile + String as Request Param using RestTemplate in Spring

Here I found where I was wrong

csvUpload will hold the URL which should be passed in rest template

 @Value("${salama.dao.csvUpload.rest.url}")
        private String csvUpload;

I found that base URL: i.e csvUpload http://localhost:8082/svs-ba-dao/csvUpload?parentPkId=&file=multipartFile sending from UploadController was wrong.

No need to specify anything like multipartFile for mediaType in URL. it will automatically pick up. but for some of the URL's need to specify ?mediaType=json if sending JSON object.

Here is my updated base URL :http://localhost:8082/svs-ba-dao/csvUpload?parentPkId=&file=