SpringBoot配置文件之Yml語法

一 使用 YAML 而不是 Properties YAML是 JSON 的超集,所以,它是用於指定分層配置數據的便捷格式。只要 class 路徑上有SnakeYAML library,SpringApplication class 就會自動支持 YAML 做爲 properties 的替代。html 若是使用「Starters」,則spring-boot-starter會自動提供 SnakeYAM
相關文章
相關標籤/搜索