title: Spring RequestBody with Postman testing
body: <p>I am testing my application and i found something weird.</p>
  
  <p>My code: </p>
  
  <pre><code>  @RequestMapping(value = "/test/{subscriberId}", method = RequestMethod.PATCH, consumes = "application/json", produces = "application/json")
  public void test(@PathVariable final String subscriberId,@RequestBody Boolean actDeact ) {
  ..
  }
  </code></pre>
  
  <p>and when i make a request via postman i take 400 bad request:
  <a href="https://i.stack.imgur.com/KJ8X4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KJ8X4.png" alt="enter image description here"></a></p>
  
  <p>but when i pass only true in the body everything works fine:
  <a href="https://i.stack.imgur.com/b4lsx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b4lsx.png" alt="enter image description here"></a> </p>
  
  <p>I cant understand why is happening this.</p>
  
  <p>I thought my first try was the valid one. The same is happening if i wait for a String 
  (i dont get error code 400 but is passing me all the body inside the string) </p>
  
  <p><strong>Can anyone explain it?</strong></p>