Skip to content

Instantly share code, notes, and snippets.

@rafali
Created March 24, 2013 19:35
Show Gist options
  • Save rafali/5233186 to your computer and use it in GitHub Desktop.
Save rafali/5233186 to your computer and use it in GitHub Desktop.
Load .properties file
#should be in a folder added to the classpath
api_key=1234abcd
ResourceBundle config = ResourceBundle.getBundle("config");
System.out.println(config.getString("api_key"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment