I have a spring boot application where properties have to be read from a yaml file.
code:
@Component @PropertySource(\"classpath:application.yml\") p
from the documentation:
YAML files cannot be loaded by using the @PropertySource annotation. So, in the case that you need to load values that way, you need to use a properties file.
Official spring boot documentation reference