Naming convention for properties in property file

后端 未结 7 1300
感情败类
感情败类 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:19

    In JSF you can see in ValidationMessages.properties something

    javax.validation.constraints.Pattern.message
    

    or in JsfMessages.properties

    javax.faces.component.UISelectOne.INVALID
    

    So you can use wherever you like, i like just lowercase, package formatted

提交回复
热议问题