由于eproperties是有點不維護和commonsconfiguration依賴于日志logging(具有諷刺意味的是你不能用它來configuration日志logging)我使用這個代碼片段,只需要commons-lang(3)加載插值的屬性:@SuppressWarnings("serial") public static Map loadProp
1。使用java.util.Properties類的load()方法獲取properties屬性值?示例: InputStream in = lnew BufferedInputStream(new FileInputStream(name));Properties p = new Properties();properties配置文件讀取?p.load(in);2。使用java.util.ResourceBundle類的