> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/iv.-spring-boot-features/24.-externalized-configuration/24.6.-using-yaml-instead-of-properties/24.6.4.-yaml-shortcomings.md).

# 24.6.4. YAML缺点

YAML文件不能通过`@PropertySource`注解加载，如果需要使用该方式，那就必须使用properties文件。
