Skip to content

Instantly share code, notes, and snippets.

@aliencode
Created August 11, 2013 03:37
Show Gist options
  • Select an option

  • Save aliencode/6203279 to your computer and use it in GitHub Desktop.

Select an option

Save aliencode/6203279 to your computer and use it in GitHub Desktop.
Java properties 文件读取
Properties prop = new Properties();
try {
prop.load(this.getClass().getClassLoader().getResourceAsStream("properties/application.routing.properties"));
} catch (IOException e) {
e.printStackTrace();
}
prop.getProperty(strVal, strVal);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment