If you get a 404 response, it means your request URL is incorrect or you are using the GET method instead of POST or vice versa.
Then, with respect to passing Person in the request, if @RequestBody used, you must pass JSON or XML to the request body as playload.
JSON:
{ "id":1, "firstName":"aaa", "lastName":bbb }
XML
<person> <id>1<id> <firstName>aaa</firstName> <lastName>bbb</lastName> </person>
source share