IT胖纸

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2015年4月8日

摘要: String baseinfo="/com/Bean/DBhelp.properties"; filename=getClass().getClassLoader().getResource("/").getPath(); filename=filename.substring(1,file... 阅读全文
posted @ 2015-04-08 20:30 IT胖纸 阅读(206) 评论(0) 推荐(0)

摘要: String path=Parameter.class.getResource("").getPath();//得到路径//String path=Parameter.class.getResource("").toString();//这个不行,无法处理里面的空格。//System.out.pri... 阅读全文
posted @ 2015-04-08 20:25 IT胖纸 阅读(616) 评论(0) 推荐(0)