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.
精彩评论