title: Spring Boot Validation with spring-boot-starter-validation is not working for Spring boot version 2.4.4
body: <p>I was trying to validate a Request body in Spring boot and It's not working. Currently I'm using the Spring Boot 2.4.4 version. This is what I did.</p>
  <p>I add this dependency <code>spring-boot-starter-validation</code></p>
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-validation&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>The Controller with imported validation funcitons</p>
  <pre class="lang-java prettyprint-override"><code>import org.springframework.validation.annotation.Validated;
  import javax.validation.Valid;
  
  @RestController
  @RequestMapping(&quot;api/administration&quot;)
  @Validated
  public class AdminController {
  
      @PostMapping(&quot;/create-organization&quot;)
      @PreAuthorize(&quot;hasAuthority('all:write')&quot;)
      public ResponseEntity createNewOrganization(
              @Valid @RequestBody OrganizationDto organization) {
  
          Organization response = adminService.createNewOrganization(organization);
  
          HttpHeaders headers = new HttpHeaders();
          headers.add(&quot;Location&quot;, &quot;/api/organization/&quot; + response.getId().toString());
  
          return new ResponseEntity(headers, HttpStatus.CREATED);
      }
  }
  </code></pre>
  <p>OrganizationDto</p>
  <pre class="lang-java prettyprint-override"><code>import javax.validation.constraints.NotBlank;
  import javax.validation.constraints.NotEmpty;
  
  @AllArgsConstructor
  @NoArgsConstructor
  @Getter
  @Setter
  @Builder
  @ToString
  public class OrganizationDto {
  
      @NotBlank
      @NotEmpty
      private String name;
  
      @NotBlank
      private String email;
  }
  </code></pre>
  <p>The Problem I have is when I send the following body from Postman No error occurred.</p>
  <pre><code>{
      &quot;name&quot;: &quot;&quot;,
      &quot;email&quot;: &quot;&quot;
  }
  </code></pre>