![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ssh
feifanyige
这个作者很懒,什么都没留下…
展开
-
spring的4个获取资源总结
1.ClassPathResource 说明:使用ClassPathResource,只能直接使用:hello.xml,而: (1)不能用src/hello.xml, (2)不能用classpath前缀,如classpath:hello.xml,或classpath:src/hello.xml (3)不能用绝对路径。2.FileSystemResource 说明:使用FileSystem转载 2009-08-06 17:08:00 · 420 阅读 · 0 评论 -
oracle按时间查询翻页时出现与前面一页重复数据
用hibernate查询分页时,翻页显示中有少量记录是重复的。已经确认sql写法没错误。select savebillin0_.*,entityacct2_.* from save_bill_info savebillin0_, CUST_INFO custinfo1_, entity_acct_bill entityacct2_ w原创 2010-03-16 14:45:00 · 677 阅读 · 0 评论 -
获取服务器路径的方法
1.获取weblogic的服务器路径String url = ServletActionContext.getServletContext().getResource("/WEB-INF/upload").getPath(); 2.获取tomact的服务器路径String url = this.getHttpRequest().getRealPath("/WEB-INF/upload"原创 2010-01-06 09:40:00 · 490 阅读 · 0 评论 -
删除服务器上的文件
public void delFloder(String url){ File folder = new File(url); String[] childs = folder.list(); for (int i = 1; i < childs.length-1; i++) { String childName = childs[i]; String ch原创 2010-01-06 09:35:00 · 566 阅读 · 0 评论