java 取得 src 下的文件
PropertyFileUtils p = new PropertyFileUtils(MonitorBO.class.getResource("/test-config.properties").getFile());
?
就可以得到 src 下的 test-config.properties 文件了。
发布时间: 2012-12-26 14:39:28 作者: rapoo
java 取得 src 下的文件
PropertyFileUtils p = new PropertyFileUtils(MonitorBO.class.getResource("/test-config.properties").getFile());
?
就可以得到 src 下的 test-config.properties 文件了。