三种格式文件比较 .properties .conf .json
来源:互联网 发布:ubuntu qemu xp 编辑:程序博客网 时间:2024/06/05 03:48
The three file formats each have advantages.
- Java
.properties
:- Java standard, built in to JVM
- Supported by many tools such as IDEs
- JSON:
- easy to generate programmatically
- well-defined and standard
- bad for human maintenance, with no way to write comments, and no mechanisms to avoid duplication of similar config sections
- HOCON/
.conf
:- nice for humans to read, type, and maintain, with more lenient syntax
- built-in tools to avoid cut-and-paste
- ways to refer to the system environment, such as system properties and environment variables
The idea would be to use JSON if you're writing a script to spit out config, and use HOCON if you're maintaining config by hand. If you're doing both, then mix the two.
0 0
- 三种格式文件比较 .properties .conf .json
- 简单操作properties格式文件
- java解析json格式文件
- C#解释Json格式文件
- android 读取JSON格式文件
- java解析json格式文件
- Python读写json格式文件
- MySQL 导出 JSON 格式文件
- 【Android】解析.json格式文件
- Json格式文件读写
- 配置logging conf/log4j.properties
- Tomcat/conf下logging.properties
- Python怎么读写json格式文件
- IIS如何解析json格式文件
- python的json格式文件读写
- 请求JSON格式文件文件问题
- 利用sed处理json格式文件
- PHP数组缓存:三种方式JSON、序列化和var_export的比较
- 图解web前端开发工具教程
- B. Two Buttons
- 解析==Android设备完整开发流程图
- leetcode_num20_Valid Parentheses
- 编译链接报undefined reference to error
- 三种格式文件比较 .properties .conf .json
- Deep Learning学习笔记(一):卷积神经网络(CNN)
- asp中isNull、isEmpty和空字符串的区别
- XML解析类NSXMLParser
- 运行软件不是中文
- Nginx 301重定向的配置
- SQLSERVER 本地查询更新操作远程数据库的代码
- [2015.3.4]思路很关键!
- 最新最全的iPhone6/6 Plus适配详解