Googled: json to dto spring boot controller
Resolved by follow the example on:
Spring Boot controller - Upload Multipart and JSON to DTO
Ajax Javascript
formData.append( 'dtoName', new Blob([JSON.stringify(dtoJavascriptObject)], {type: "application/json"}));
Spring Controller parameter
@RequestPart ManualGenerateCsv dtoName
No comments:
Post a Comment