I´m developing a Spring Boot Web application and i need to load a YAML properties file which has a list on some fields, for example:
x:
- 1
- 2
But when I load the file to the Environment the list is not loaded, instead it flattens the list and loads the properties wrongly. Is there a way to load the YAML file so that the properties are loaded correctly?