title: How to pass multiple values in RequestParam
body: <p>How to pass multiple values in RequestParam and retrieve them.</p>
  <pre><code>public List&lt;String&gt; get(@RequestParam(&quot;query&quot;) String query)
  
  query = [a | b | c].
  </code></pre>
  <p>Where a, b, and c are optional.<br/>
  How can we pass the query as a param. When a&amp;c are optional and if we pass &quot;,b,&quot;.
  Then I am getting array as[&quot; &quot;, b] after splitting with &quot;,&quot;. Instead of [&quot; &quot;, b, &quot; &quot;].</p>
  <p>How can I pass the query as a param, so that I can get an array of three strings?</p>