Earlier I put my properties file within my classpath src/
. Now I would like to put it within a folder called config/
. This way the end users can actually modify the file by themselves.
However now my code below does not work anymore
ResourceBundle.getBundle("Messages", Locale.getDefault());
What I meant by the code doesn't work anymore is, after I deploy the application and I modify the Messages_en_US.properties
the changes do not take place.
How can I achieve what I want ? Should I use getBundle
at all ?
EDIT
I have added config
folder into the classpath as well, but I am not sure if this is relevant. This is a plain Java application where I am not using Maven or any building tools.