title: "Required request body is missing: public org.springframework.http.ResponseEntity<?>
body: <p>I am learning Spring-Boot features and going through them also with Postman. But when i run the code i get 400 Bad Request Error on Postman like this: 
  "Required request body is missing: public org.springframework.http.ResponseEntity". Have i missed an attribute or the coding is all the way wrong?</p>
  
  <pre><code> @RestController
   @RequestMapping("/api/board")
   @CrossOrigin
  public class ProjectTaskController {
  
  @Autowired
  private ProjectTaskService projectTaskService;
  
  @PostMapping("")
  public ResponseEntity&lt;?&gt; addPTToBoard( @Valid @RequestBody ProjectTask projectTask, BindingResult result){
      if(result.hasErrors()) {
          Map&lt;String, String&gt; errorMap= new HashMap&lt;&gt;();
  
          for(FieldError error: result.getFieldErrors()) {
              errorMap.put(error.getField(), error.getDefaultMessage());
          }
           return new ResponseEntity&lt;Map&lt;String, String&gt;&gt;(errorMap, HttpStatus.BAD_REQUEST);
      }
  
      ProjectTask newPT= projectTaskService.saveOrUpdateProjectTask(projectTask);
      return new ResponseEntity&lt;ProjectTask&gt;(newPT, HttpStatus.CREATED);
  }
  </code></pre>
  
  <p>The projectTask code, it has getters and setters also.</p>
  
  <pre><code>@Entity
  public class ProjectTask {
  
  @Id
  @GeneratedValue(strategy= GenerationType.IDENTITY)
  private long id;
  
  @NotBlank(message = "summary cannot be blank")
  private String summary;
  private String acceptanceCriteria;
  private String status;
  
  public ProjectTask() {
  
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/57BUX.jpg" rel="noreferrer">Postman request</a> Here</p>