Spring boot Unsupported Media Type with @RequestBody : <p>I checked in several different ways, also downloaded a new project to see what to check where is bug but I still do not know the answer.</p>

<p>That is my RestController</p>

<pre><code>@RestController
@RequestMapping(value = "/message")
public class MessageController {

    @RequestMapping(value = "/", method = RequestMethod.POST)
    public void createMessage(@RequestBody Message message){
        System.out.println(message);
    }
}
</code></pre>

<p>That is my Model</p>

<pre><code>@Data
@Entity
public class Message {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;

    private String sender;
    private String telephone;
    private String message;
}
</code></pre>

<p>Gradle dependencies if necessary</p>

<pre><code>dependencies {
    compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.0.pr3'
    compile('org.springframework.boot:spring-boot-starter-data-jpa')
    compile('org.springframework.boot:spring-boot-starter-web')
    runtime('com.h2database:h2')
    runtime('org.postgresql:postgresql')
    compileOnly('org.projectlombok:lombok')
    testCompile('org.springframework.boot:spring-boot-starter-test')
}
</code></pre>

<p>and in postman i'm getting that error</p>

<blockquote>
  <p>{   "timestamp": 1495992553884,   "status": 415,   "error":
  "Unsupported Media Type",   "exception":
  "org.springframework.web.HttpMediaTypeNotSupportedException",<br>
  "message": "Content type
  'application/x-www-form-urlencoded;charset=UTF-8' not supported",<br>
  "path": "/message/" }</p>
</blockquote>

<p>It is simplest way for rest but where I make a mistake?</p>
