[英]how to get Map<String,List<Data>> from yaml using snakeyaml
[英]Generate YAML file from string with SnakeYaml
是否可以使用snakeyaml解析以下內容(字符串)
environment.dev.url: http : //dev.examle.com
environment.dev.name:開發人員設置
environment.prod.url: http : //another.example.com
environment.prod.name:我很酷
並獲取一個YAML文件
environments:
dev:
url: http://dev.example.com
name: Developer Setup
prod:
url: http://another.example.com
name: My Cool App
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.