title: Parameter value [1] did not match expected type [java.lang.Integer (n/a)]
body: <p>I have entity and rest controller, when I make a request to my controller it throws this exception: </p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: Parameter value [1] did not match expected type [java.lang.Integer (n/a)]</p>
  </blockquote>
  
  <p>My controller: </p>
  
  <pre><code>@GetMapping("/createCharacter")
  public Character createCharacters(@RequestParam("userId") Integer userId, @RequestParam("mapId") long mapId) {
      return createCharactersService.createCharacters(userId, mapId);
  }
  </code></pre>
  
  <p>My entity has int type id:</p>
  
  <pre><code>  @Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  private int id;
  </code></pre>