I have a search method and it has keywords parameter. What I want to do is set a default value(empty String array) to keywords parameter. Is there any way to do this?
@GetMapping(value = "search")
public List<Integer> search(@RequestParam String[] keywords){
return calculate(Arrays.asList(keyword));
}