title: Usage of @Valid vs @Validated in Spring
body: <p>Thanks to this <a href="https://stackoverflow.com/questions/36173332/difference-between-valid-and-validated-in-spring">question</a>, I think I understand how validation is working.</p>
  
  <p>As for JPA, here we have a specification called JSR-303 explaining how Bean Validation should work and then we are using implementations like the commonly used Hibernate Validator or Apache BVal also.</p>
  
  <p>I am struggling about using <code>@Valid</code>in some part of my code. I am not using <code>@Validated</code> because I do not need group validation.</p>
  
  <p>You can find an example of a demo project <a href="https://github.com/MadJlzz/multi-configuration-properties" rel="nofollow noreferrer">here</a></p>
  
  <p>In <code>PropertyExample</code> class, you can see I marked my class for bean validation to happen.</p>
  
  <p>When using <code>@Validated</code>, everything work as expected since I am violating a constraint in my <code>application.yml</code> file.
  When using <code>@Valid</code> over <code>@Validated</code>, it seems nothing happens. I do not understand why.</p>
  
  <p>I saw too that those annotations could be used on <code>ElementType.PARAMETER</code> but when I am using using them during constructor initialisation, validation doesn't seem to trigger either.</p>
  
  <p>Explanations on how to used those annotations (especially the <code>@Valid</code>) would be greatly appreciated.</p>