Skip to content

Commit

Permalink
Specify RequestPart name in multipart controller
Browse files Browse the repository at this point in the history
  • Loading branch information
banterCZ committed Dec 13, 2023
1 parent 668bb6f commit dfc1e50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public ObjectResponse<TestResponse> testPostWithObjectRequestAndResponse(@Reques
}

@PostMapping(value = "/multipart-request-response", consumes = { MediaType.MULTIPART_FORM_DATA_VALUE })
public ObjectResponse<TestResponse> testPostWithMultipartRequestAndResponse(@RequestPart TestRequest request) {
public ObjectResponse<TestResponse> testPostWithMultipartRequestAndResponse(@RequestPart("request") TestRequest request) {
TestResponse testResponse = new TestResponse(request.getRequest());
return new ObjectResponse<>(testResponse);
}
Expand Down

0 comments on commit dfc1e50

Please sign in to comment.