I used the Spring version 4.1.8.RELEASEwithout any problems in my application. I have a basic setup with Spring controllers that serve as REST resources and have defined the following resource:
@RequestMapping(
value = "/emailvalidation",
method = RequestMethod.POST)
public ResponseEntity userEmailValidation(
@Valid @RequestBody UserEmailValidationRequest request, BindingResult bindingResult) {
validator.validate(ErrorCode.class, bindingResult);
backendClient().validateUserEmail(request);
return new ResponseEntity(HttpStatus.NO_CONTENT);
}
It was a properly working resource, and in the case of validation validation, it returned a successful response with an HTTP status of 201.
The problem is that after upgrading to a 4.2.3.RELEASEresource, the resource always returns an HTTP status of 500.
Is there a new way to handle such resources where I want to make a POST, however there is no response data? I could not find any updates about this, nor about any problem.