title: How to give default value as integer in @RequestParam()
body: <p>I'm new to <strong>spring boot</strong> and learning <code>@RequestParam()</code></p>
  
  <p>I know that we can give defaultValue in String but when I am trying to give default value as Integer it's showing me an error.</p>
  
  <pre><code>@RequestMapping("/returnVeriable")
  public int getVeriable(@RequestParam(required=true,defaultValue=1/*error here*/) int veri){
      return veri;
  }
  </code></pre>
  
  <p>any help would be appreciated.</p>