title: BindResult hasErrors method not showing
body: <p>I'm doing a case study on Spring MVC and for some reason I'm unable to call the .hasErrors method within my BindResult class :</p>
  <pre><code>@PostMapping(&quot;/jedi&quot;)
  public String createJedi(@Valid @ModelAttribute Jedi jedi, BindResult bindResult) {
  
      if (bindResult.hasErrors()) {
          return &quot;new-jedi&quot;;
      }
  
      jediRepository.addJedi(jedi);
      return &quot;redirect:jedi&quot;;
  }
  </code></pre>
  <p>Not sure if this is a version incompatibility problem, or something's missing in my code.</p>
  <p>I'm following a tutorial online and the guy explaining it didn't do anything different from me, so I really don't know why this is happening.</p>