> 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.md).

# 24.6. 使用YAML代替Properties

[YAML](http://yaml.org/)是JSON的一个超集，也是一种方便的定义层次配置数据的格式。只要你将[SnakeYAML ](http://code.google.com/p/snakeyaml/)库放到classpath下，`SpringApplication`就会自动支持YAML，以作为properties的替换。

**注** 如果你使用“Starters”，添加`spring-boot-starter`依赖会自动加载SnakeYAML。
