Is there a way to list all of the parameters that exist in an application.yml properties file?
If I have these properties, can I list them similar to the display below?
application.yml
parentProp1:
childProp1: childProp1Value1
childProp2: childProp1Value2
childProp3: childProp1Value3
parentProp2:
childProp1: childProp1Value1
childProp2: childProp1Value2
childProp3: childProp1Value3
Display like this:
parentProp1:childProp1:childProp1Value1
parentProp1:childProp2:childProp1Value2
parentProp1:childProp3:childProp1Value3
parentProp2:childProp1:childProp1Value1
parentProp2:childProp2:childProp1Value2
parentProp2:childProp3:childProp1Value3
Note: I can access the properties using @Value or environment.GetProperty, that part works fine, but is there a way, in Java, to iterate over all of the porperties in the application.yml file?