title: Spring mvc submit form not found error 404
body: <p>I am using spring mvc and I have created a jsp page.</p>
  
  <p><strong>redmn.jsp</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form id="forma" name="forma" action="something" method="post" enctype="multipart/form-data" &gt;
      //some fields
   &lt;input type="submit" value="Valider" /&gt;
  
    &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Then I have created one controller to handle my request:</p>
  
  <pre><code>@Controller
  public class SecondController{
  
  
  @RequestMapping(value="/something", method= RequestMethod.POST)
  public String addRes( HttpServletRequest req,
          BindingResult result,
          ModelMap model,
          @RequestParam("file") MultipartFile file){
   // some treatements
   return "redmn"
  }
  </code></pre>
  
  <p>When I am clicking the submit button, I am getting 404 error. Please someone help to resolve this issue.</p>