title: How to accept and parse a csv w/ Jackson in Spring Rest
body: <p>What do I need to do to be able to upload a csv file and have it parsed automatically with Jackson? Just using the below I get &quot;Unsupported Media Type&quot;, which makes me think I'm missing a configuration.</p>
  <pre><code>@RestController
  @RequestMapping(&quot;/upload&quot;)
  public class Uploader {
      @PostMapping
      @ResponseStatus(HttpStatus.CREATED)
      public String create(@RequestBody List&lt;MyDataType&gt; myFile) {
          return myFile.toString();
      }
  }
  </code></pre>
  <hr />
  <pre><code>@Data
  @JsonPropertyOrder({ &quot;item1&quot;, &quot;item2&quot; })
  public class MyDataType {
      public String item1;
      public String item2;
  }
  </code></pre>