title: bad request with angularjs $http.post and spring restful
body: <p>I have a method in server(with spring restful):<br/></p>
  
  <pre><code>@RequestMapping(value = "/lastQuestions", method = RequestMethod.POST)
  public List&lt;QuestionEntity&gt; getLastQuestions(@RequestParam("count") Integer count) throws SQLException {
  
      List&lt;QuestionEntity&gt; _result = _Impl.getLast(count);
      return _result;
  
  }
  </code></pre>
  
  <p>in angularjs :<br/></p>
  
  <pre><code>   var _url = 'http://localhost:8080/Tabaraee/service/question/lastQuestions';
  
          $http.post(_url,{count:10}).success(function(data, status, headers, config) {
              return data;
          }).error(function(data, status, headers, config) {
              return data;
          });
  </code></pre>
  
  <p>but get error : <br/></p>
  
  <pre><code>"NetworkError: 400 Bad Request - http://localhost:8080/Tabaraee/service/question/lastQuestions"
  </code></pre>
  
  <p>response :</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/7.0.57 - Error report&lt;/title&gt;&lt;style&gt;&lt;!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 400 - Required Integer parameter 'count' is not present&lt;/h1&gt;&lt;HR size="1" noshade="noshade"&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt; Status report&lt;/p&gt;&lt;p&gt;&lt;b&gt;message&lt;/b&gt; &lt;u&gt;Required Integer parameter 'count' is not present&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt; &lt;u&gt;The request sent by the client was syntactically incorrect.&lt;/u&gt;&lt;/p&gt;&lt;HR size="1" noshade="noshade"&gt;&lt;h3&gt;Apache Tomcat/7.0.57&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>why ?</p>