title: Spring boot yml ResourceBundle file
body: <p>I'm using <code>MessageSource</code> of Spring to load errors messages from a <code>.properties</code> file in classpath. My properties respect a certain "template" such as <code>{Object}.{field}.{unrespectedConstraint}</code> Example : </p>
  
  <pre><code>userRegistrationDto.password.Size= Le mot de passe doit avoir au minimum 6 caractères.
  userRegistrationDto.email.ValidEmail= Merci de saisir une addresse mail valide.
  </code></pre>
  
  <p>In case of refactoring (Changing the name of the class for example), I have to change my properties file in several places. </p>
  
  <p>Is there any way to use a yaml file (messages.yml) as a ResourceBundle to obtain something like :</p>
  
  <pre><code>userRegistrationDto:
    password:
      Size: Le mot de passe doit avoir au minimum 6 caractères.
    email:
      ValidEmail: Merci de saisir une addresse mail valide.
  </code></pre>