title: How can I set param as not required in micronaut GET request?
body: <p>I need to set a param as Not Required in my request.</p>
  <p>I tried:</p>
  <pre class="lang-java prettyprint-override"><code> @Get(value = &quot;/list/{username}&quot;)
   HttpResponse&lt;?&gt; list(String username, @QueryValue(value = &quot;actionCode&quot;) String actionCode) {
       ...
   }
  </code></pre>
  <p>When I send the request <em>http://localhost:8080/notification/list/00000000000</em> the following error is thrown:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;message&quot;: &quot;Required Parameter [actionCode] not specified&quot;,
      &quot;path&quot;: &quot;/actionCode&quot;,
      &quot;_links&quot;: {
          &quot;self&quot;: {
              &quot;href&quot;: &quot;/notification/list/00000000000&quot;,
              &quot;templated&quot;: false
          }
      }
  }
  </code></pre>