![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Javaweb
文章平均质量分 73
liu_feng2014
这个作者很懒,什么都没留下…
展开
-
request.getRealPath()方法
1、request.getRealPath()此方法已过时,现在可替换的实现方法有 request.getSession().getServletContext().getRealPath("/"); 2、使用场景: Servlet 里用this.getServletContext().getRealPath("/");获得绝对路径; strut原创 2015-07-01 18:22:03 · 488 阅读 · 0 评论 -
用jxl.jar实现excel中的数据批量上传
今天用jxl包导入excel时报错如下: Exception in thread "main" jxl.read.biff.BiffException: Unable to recognize OLE stream at jxl.read.biff.CompoundFile.(CompoundFile.java:116) at jxl.read.biff.File.(File.java:12原创 2015-07-03 10:54:29 · 634 阅读 · 0 评论