Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个枚举示例
public enum TestClass { DATA_A ("A","CLASS A"), DATA_B ("B","CLASS B"), DATA_C ("C","CLASS C"); }
随着我的枚举值不断增加,我是否可以将所有这些值放入属性文件中,并且如果将来这些值被更改或添加,则不需要在枚举中进行任何更改?