I'm new to spring boot and learning @RequestParam()
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.
@RequestMapping("/returnVeriable")
public int getVeriable(@RequestParam(required=true,defaultValue=1/*error here*/) int veri){
return veri;
}
any help would be appreciated.