axios post request to send form data

axios POST request is hitting the url on the controller but setting null values to my POJO class, when I go through developer tools in chrome, the payload contains data. What am I doing wrong? Axios POST Request: var body = { userName: ‘Fred’, userEmail: ‘[email protected]’ } axios({ method: ‘post’, url: ‘/addUser’, data: body }) … Read more