Naming convention for properties in property file

后端 未结 7 1474
感情败类
感情败类 2021-02-03 20:05

What are the naming conventions for property names defined in properties files in Java? Can I use uppercase or only lowercase?

For example: bankAccountNumber or bank.acc

7条回答
  •  半阙折子戏
    2021-02-03 20:23

    As per my understanding, there is no any standard rule written for .properties file in java. but if you see the .properties files inside the lib folder of Java\jre most of them have lower cased .properties file names. And the properties themselves are also lower cased. such as:

    psfontj2d.properties
    

    key values

    courier_new=courier
    courier_new_bold=courier_bold
    

提交回复
热议问题