title: Spring mvc doesn't work post method in form
body: <p>When I started write application, form submited and <em>createAnnotation</em> method worked. Now it doesn't work. Why?
  By the way GET method executes in controller, and POST doesn't.</p>
  
  <pre><code>@Controller
  @RequestMapping("/annotation")
  public class AnnotationController {
  
      @RequestMapping(value = "/new", method = RequestMethod.POST)
      public String createAnnotation(@ModelAttribute Annotation annotation, BindingResult result){
          annotationService.create(annotation);
          return "redirect:/annotation/annotations.htm";
      }
  
  }
  </code></pre>
  
  
  
  <pre class="lang-xml prettyprint-override"><code>&lt;form action="${pageContext.request.contextPath}/annotation/new" method="post"&gt;
    &lt;div class="form-group"&gt;
      &lt;label for="text"&gt;Annotation name&lt;/label&gt;
      &lt;input type="text" class="form-control" id="text" placeholder="Annotation name" name="name"/&gt;
    &lt;/div&gt;
    &lt;div class="form-group"&gt;
      &lt;label for="date"&gt;Date:&lt;/label&gt;
      &lt;input type="date" class="form-control" id="date" placeholder="Date" name="date"/&gt;
    &lt;/div&gt;
    &lt;div class="form-group"&gt;
      &lt;label for="comment"&gt;Description:&lt;/label&gt;
      &lt;textarea class="form-control" rows="5" id="comment" name="description"&gt;&lt;/textarea&gt;
    &lt;/div&gt;
    &lt;input type="hidden" name="profil.id" value="1"/&gt;
    &lt;input type="submit" class="btn btn-default" value="Submit"/&gt;
  &lt;/form&gt;
  </code></pre>