read :
InputStream inStr = RunnerHelper.class.getResourceAsStream(fileName);
if (null == inStr) {
LogManager.writeLog(new RunnerHelper(),
" cannot get stream from Properties file :[ " + fileName
+ "] ");
}
Properties props = new Properties();
try {
props.load(inStr);
} catch (Exception e) {
props = null;
e.printStackTrace();
}
------解决方案--------------------
怎么这样子写?
网上搜索一下资源文件properties问题
中国JavaEE技术交流社区-欢迎您的参与探讨!
-- 打造“中国JavaEE技术交流社区“,欢迎j2ee爱好者朋友们的踊跃参与!
http://www.aspwind.cn