Comparison of three format files. Properties. conf. json

Source: Internet
Author: User

The three file formats each has 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
    • Human maintenance, with no-to-write comments, and no mechanisms to avoid duplication of similar config section S
  • 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 is the use of 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 and then mix the other.

Comparison of three format files. Properties. conf. json

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.