I am using Spring MVC and I have a function to update a user profile:
@RequestMapping(value = "/{userName}" + EndPoints.USER_PROFILE, method = RequestMethod.PUT) public @ResponseBody ResponseEntity<?> updateUserProfile( @PathVariable String userName, @RequestBody UserProfileDto userProfileDto) {
I started using JMeter, and for some reason they had a problem sending a PUT request with the body (either to the request body, or by hacking the request parameter).
I know that in Jersey you can add a filter to handle the request parameter of the HTTP override method so that you can send a POST request and override it with the header parameter.
Is there a way to do this in Spring MVC?
Thanks!
source share