Created
August 11, 2013 03:37
-
-
Save aliencode/6203279 to your computer and use it in GitHub Desktop.
Java properties 文件读取
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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