title: Getting 415 unsupported media type while consuming an api which I created
body: <pre><code>@RequestMapping(value="/sam", method=RequestMethod.POST, consumes = {"text/plain", "application/*"})
  public void test(HttpServletRequest request, HttpServletResponse response, @RequestBody Test test) {
      try {System.out.println("*******************inside**************************");
      } catch(Exception exception) {
          exception.printStackTrace();
      }
  }
  
  public class Test {
  
  private String desc;
  private int id;
  public String getDesc() {
      return desc;
  }
  public void setDesc(String desc) {
      this.desc = desc;
  }
  public int getId() {
      return id;
  }
  public void setId(int id) {
      this.id = id;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Request body I used is </p>
  
  <pre><code>{
      "id": 88,
      "desc":"test"
  }
  </code></pre>
  
  <p>Even though I have added consumes in request mapping I'm getting 415 when I try to access from postman and also I have set the request header in postman, content-type as application/json</p>