spring_reference/IV. Spring Boot features/23.6. Using YAML instead of...

6 lines
401 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### 23.6. 使用YAML代替Properties
[YAML](http://yaml.org/)是JSON的一个超集也是一种方便的定义层次配置数据的格式。无论你何时将[SnakeYAML ](http://code.google.com/p/snakeyaml/)库放到classpath下SpringApplication类都会自动支持YAML作为properties的替换。
**注**:如果你使用'starter POMs'spring-boot-starter会自动提供SnakeYAML。