2013-06-27 58 views

回答

1

使用Properties.load(InputStream)方法从WAR文件外的静止位置加载性能。

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

我不知道这是多么安全或标准化,但这对我有用,并节省了很多努力。谢谢。 –