请问getClass().getResourceAsStream(fileName)中的fileName可以用绝对路径吗? 上面写错了,是:prop.load(getClass().getResourceAsStream("D:\\props\\feconfig.properties"));好像不行,不知道可以吗?为什么呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 This method delegates the call to its class loader, after making these changes to the resource name: if the resource name starts with "/", it is unchanged; otherwise, the package name is prepended to the resource name after converting "." to "/". 为什么两个Date对象会相等? java Font style 相关 java代码如何编写从规律的url地址上下载文件 访问相同类private的问题 vc如何掉用java程序(急) 求!!!帮忙进来看下 100分!矢量图显示与.MAP文件格式求教 java中读写文件的例子? 如何用jdbc对数据库创建一个表,有了SQL语句,应该用jdbc中的哪个类、哪个方法呢? (送分发发88)一个java应用程序的表单布置的小问题,希望大家帮忙? 如何动态得到自身的名字????????????????? 朋友们帮忙小弟力量有限,这是我们争取自己在CSDN的权利的机会!!!!!!!!!!!!!!!!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货