![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
chenglaoshi
这个作者很懒,什么都没留下…
展开
-
Java中通过POI读取Excel 2003 - 2007的xls,xlsx格式
[code="java"] @Test public void testRead() throws IOException, InvalidFormatException { // String fileName = "e:/workbook.xls"; String fileName = "e:/workbook.xlsx"; Workbook wb = Workboo...2012-12-01 21:01:31 · 198 阅读 · 0 评论 -
Java路径问题解决方案汇集
最近查看了网上很多关于路径问题资料大概总结了一下:Java路径中的空格问题1、 URLTest.class.getResource("/").getPath(); URLTest.class.getResource("/").getFile(); URLTest.class.getClassLoader().getResource("").getPath(); ...原创 2013-02-17 13:54:27 · 85 阅读 · 0 评论 -
根据时间段查询log日志,拆分日志等
示例一:日志格式:wechat_Log:[2014-09-17 09:09:22] WARN JSONObject:446 - Tried to assign propertywechat_Log:[2014-09-17 09:09:22] WARN JSONObject:446 - Tried to assign propertywechat_Log:[2014-09-17 ...2014-12-23 09:02:48 · 974 阅读 · 0 评论 -
Java中判断文件是否是图片文件
使用Image读取文件时,如果是非图像文件,则会返回null。参考代码:[code="java"]try { Image=ImageIO.read(new File(name)); if (image == null) { valid = false; System.out.println("The file"+name+"c...2014-08-17 23:20:32 · 593 阅读 · 0 评论 -
亲测国外很快的Maven镜像
亲测速度非常理想,并且不会像阿里的镜像很多包下载不下来。在自己空间收藏。[code="xml"] ui central Human Readable Name for this Mirror. http://uk.maven.org/maven2/ sprintio central Human Readable...原创 2016-11-23 14:29:58 · 510 阅读 · 0 评论 -
Java网络爬虫经验分享
最近三年很少写博客,虽然一直从事IT行业,但更多的是管理工作,想想真有些惭愧。最近半年,时不时业务上需要爬虫,将网页内容爬取分析,有用于AI人工智能分析,有用于大数据分析,种种应用,发现爬虫作用不小这篇文章不是一篇教学文章,更多的是分享在爬取网页中可能会遇到的一些技术问题以及常见问题,并提供解决方案。因此更适合有一定爬虫开发经验人员阅读。虽然本文使用Java,但这些常见问题...2018-04-20 09:50:52 · 187 阅读 · 0 评论