title: Required String Parameter is not present?
body: <p>My Spring Boot project has a form at <code>/albums/add</code> which looks like this:</p>
  <pre><code>&lt;form method=&quot;post&quot;&gt;
      &lt;input type=&quot;text&quot; name=&quot;albumName&quot;/&gt;
      &lt;input type=&quot;submit&quot; value=&quot;Add album&quot;/&gt;
  &lt;/form&gt;
  </code></pre>
  <p>I'm trying to deal with that request in the controller below:</p>
  <pre><code>@Controller
  @RequestMapping(value = &quot;/albums&quot;)
  public class AlbumController {
  
  (...)
  
      @PostMapping(&quot;/add&quot;)
      public String processAddAlbumForm(@RequestParam String albumName) {
          albums.add(albumName);
          return &quot;redirect:&quot;;
      }
  
  }
  </code></pre>
  <p>However, Spring throws a 400 and tells me &quot;Required String parameter 'albumName' is not present&quot;.</p>
  <p>If I view the Network tab in my browser, I can see the request arrive with a value for albumName under the &quot;Form Data&quot; header, where the <code>@RequestParam</code> annotation can't seem to find it.</p>
  <p>My code is copied directly from <a href="https://youtu.be/0z_hjs5XRy0?t=1369" rel="nofollow noreferrer">this tutorial</a>, but I'm worried something might have deprecated since it was made - any ideas?</p>