title: SpringMvc RequestBody getting headers
body: <p>I am using SpringMVC and this is my POST method:</p>
  
  <pre><code>RequestMapping(value = "/test/handler", 
              method = RequestMethod.POST,
          headers = {"Content-type=application/json"})
      public String getOpen(@RequestBody String json, HttpServletRequest request) throws InterruptedException {
  
          String result= json;                        
  
          ObjectMapper mapper = new ObjectMapper();
          DataJsonMailJet jsonobj = null;
          try {
  
              // read from file, convert it to jsonobj class
              jsonobj = mapper.readValue(json, DataJsonMailJet.class);
  
              // display to console
              System.out.println(jsonobj);
  
          } catch (JsonGenerationException e) {
  
              e.printStackTrace();
  
          } catch (JsonMappingException e) {
  
              e.printStackTrace();
  
          } catch (IOException e) {
  
              e.printStackTrace();
  
          }
  
  
      return (result);
  
      }
  </code></pre>
  
  <p>The Problem is that my "json" object is even getting the header like so:</p>
  
  <pre><code>------------------------------2fe344dd21f3
  Content-Disposition: form-data; name="0"
  
  [{"event":"open","time":1467369924, .......}]
  ------------------------------2fe344dd21f3--
  </code></pre>
  
  <p>I Have tried taking out the "headers" but no luck...
  Any Suggestions? Thanks</p>