I would like to eliminate hard-coded path dependencies for configuration data in my Java applications, I understand that using the ResourceBundle will help me use the class loader to search for resources.
Can someone tell me how to replace a hard path with a resource (say the configuration data file .properties needed by the class) using ResourceBundle accordingly? A simple clear example, if possible, thanks to everyone.
source
share