I really like the @ConfigurationProperties-functionality of Spring to load my configuration properties via YAML into a Java class.
Normally I would use it in a way, that I have the following yaml-file:
lst:
  typ:
    A: "FLT"
    B: "123"
    C: "345"
    D: "TTS"
The type-attribute would be mapped to a Java-Map. Now i would like to have a solution to reference yaml-fragments in the yaml-file itself, so that I could reuse the reference to the fragment:
lst: ${typs}
typs:
  A: "FLT"
  B: "123"
  C: "345"
  D: "TTS" 
Is that possible with Spring and @ConfigurationProperties?
 
     
    