title: How to set default value to get array parameter in Spring MVC
body: <p>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?</p>
  
  <pre><code>@GetMapping(value = "search")
  public List&lt;Integer&gt; search(@RequestParam String[] keywords){
   return calculate(Arrays.asList(keyword));
  }
  </code></pre>