Use properties file instead of static final variables

后端 未结 6 1497
轮回少年
轮回少年 2021-02-08 03:05

I have many classes with static final fields which are used as default values or config. What is best approach to create global config file? Should I move these fields to single

6条回答
  •  说谎
    说谎 (楼主)
    2021-02-08 03:38

    It is good to have them on one place. Property file or static class? Property file should be used for e.g. localization. Static class for e.g. String constants.

提交回复
热议问题