开发者

Java - Can .properties values be set statically in compiled class?

Can .properties values be stored statically in compiled classes?

I am updating a value in my .properties file yet the log is still showing the old value from the original .properties file. Is this because the class file has stored the .properties values during compilation开发者_开发技巧? (I do not have the original source so cannot recompile)


Properties are not set statically in compiled class. Most likely you have old properties somewhere in classpath, or, maybe, another property file with the same property. Try to run your application in verbose mode in order to get classpath and search in it for properties files loaded.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜