title: Send RequestParam to Spring Boot Server in Axios
body: <p>I have a controller method in my Spring Boot app which takes an argument from <code>@RequestParam</code>. I'm sending it using Axios, but every time the server responds with the following warning and the function doesn't get executed. </p>
  
  <blockquote>
    <p>Required long parameter 'task_id' is not present]</p>
  </blockquote>
  
  <p><strong>axios request</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>axios.delete("/task-asignee/" + props.userId, null, {
       params: {
         task_id: props.taskId,
       },
     })
     .then(res =&gt; {
        props.onRemove();
      })
     .catch(err =&gt; console.log(err));
  </code></pre>
  
  <p><strong>Spring boot controller method</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>@DeleteMapping("/task-asignee/{userId}")
  public void removeTaskAssignee(@RequestParam("task_id") long taskId,@PathVariable long userId) {
      TaskAsigneeKey tak = new TaskAsigneeKey(userId,taskId);
      TaskAsignee ts = taskAsRepository.findById(tak);
      taskAsRepository.delete(ts);
  }
  </code></pre>