摘要:
最近在训练web的三层开发模式,写了一个小程序,为了模拟数据库,用了xml来进行存放数据,因此需要将xml文件装载到内存中去,代码如下 private static String fileName; static { fileName=XmlUtils.class.getClassLoader().getResource("user.xml").getPath(); }采用上面的方法进行获取该文件的物理路径。一运行出现了下面的错误java.lang.RuntimeException: org.dom4j.DocumentException: D:\Works... 阅读全文
posted @ 2014-03-02 22:23
迷失的小猪
阅读(1698)
评论(0)
推荐(1)

浙公网安备 33010602011771号