I am developing the rest api in Spring 4. My requirement is accept all content types sent by client and override it with application/json OR completely ignore the content type sent by client and make default content type as application/json. My controller has @RequestBody annotaion so it accepts only application/json for other content types it throws 415. Is there any configuration in Spring to override or ignore content type ?
Aucun commentaire:
Enregistrer un commentaire