2013-06-27 57 views

回答

1

使用Properties.load(InputStream)方法從WAR文件外的靜止位置加載性能。

Properties props = new Properties(); 
props.load(new FileInputStream("<<PathtoYourPropertiesFile>>")); 
+0

我不知道這是多麼安全或標準化,但這對我有用,並節省了很多努力。謝謝。 –