首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

java 取得 src 上的文件

2012-12-26 
java 取得 src 下的文件PropertyFileUtils p new PropertyFileUtils(MonitorBO.class.getResource(/tes

java 取得 src 下的文件

PropertyFileUtils p = new PropertyFileUtils(MonitorBO.class.getResource("/test-config.properties").getFile());

?

就可以得到 src 下的 test-config.properties 文件了。

热点排行