Hello,
I need to validate a simple JSON-Object, which comes in the body of a HTTP-request.
This is the spring controller with the relevant methods. The addEmployee() method works fine, the updateEmployee() method only works fine when the JSON in the request is valid. When the JSON is not valid does not get called at all
This is the dto-object:
That's how I do the request:
The 'content type'-header is set to application/json in both requests, the only difference in both calls is the URL and the http-method. When i cut the firstname to a length < 45 also updateEmployee() works fine.
I hope someone can help me with this,
thanks in advance,
Michael