How to create an .INI file to store some settings in Java?

后端 未结 6 1230
悲&欢浪女
悲&欢浪女 2020-12-08 01:09

I want to create an ini file to store some settings for my application. Is it a good idea to find where the jar file is located and create an ini file there? If yes, then ho

6条回答
  •  暖寄归人
    2020-12-08 01:58

    The idea with the .properties file instead of the INI file is good. Also, if you store some sensitive data in there, you may consider encrypting it. Check this out:

    https://www.owasp.org/index.php/How_to_encrypt_a_properties_file

    or this:

    encrypt and decrypt property file value in java

提交回复
热议问题