title: Unsupported media type 415 in angularJS
body: <p>I am trying to post the data, when I click on save I am getting 415 unsupported media type in the browser. One more observation I would like to add is, when I am sending data using POSTMAN  to the application in JSON format then, the data is getting persisted in the database and is coming fine in the view. If using above angular code the issue still persists.</p>
  
  <p>js code -</p>
  
  <pre><code>$scope.addUser = function addUser() {
  var user={};
  console.log("["+$scope.user.firstName+"]");
           $http.post(urlBase + 'users/insert/',$scope.user)
              .success(function(data) {
               $scope.users = data;   
               $scope.user="";
               $scope.toggle='!toggle';            
              });
          };
  </code></pre>
  
  <p>Controller code -</p>
  
  <pre><code> @RequestMapping(value="/users/insert",method = RequestMethod.POST,headers="Accept=application/json")
       public @ResponseBody List&lt;User&gt; addUser(@RequestBody User user) throws ParseException {    
          //get the values from user object and send it to impl class
    }
  </code></pre>