- 博客(4)
- 问答 (1)
- 收藏
- 关注
转载 集合转数组的toArray()和toArray(T[] a)方法
转载自:https://www.cnblogs.com/goloving/p/7693388.html 感谢原作者1、ArrayList的toArray ArrayList提供了一个将List转为数组的一个非常方便的方法toArray。toArray有两个重载的方法: (1)list.toArray(); (2)list.toArray(T[] a); 对于第一个重载方法,是将lis...
2018-03-29 17:08:27
1564
原创 BeanUtils 在复制类时需要注意 值为空的情况
BeanUtils.copyProperties(dest, orig);此处引用的是 org.apache.commons.beanutils.BeanUtils;ConvertUtils.register(new DateConverter(null), java.util.Date.class);//添加这一行代码,解决date 类型为空 报错ConvertUtils.register(n...
2018-03-26 19:27:53
2589
原创 excel 文件解析报错 jxl.read.biff.BiffException: Unable to recognize OLE stream
完整报错信息:jxl.read.biff.BiffException: Unable to recognize OLE stream at jxl.read.biff.CompoundFile.<init>(CompoundFile.java:116) at jxl.read.biff.File.<init>(File.java:127) at jxl.Workbook.g...
2018-03-21 19:20:47
812
原创 myeclipse/eclipse 打开报错,所有maven项目无法编译
报错信息如下:Errors occurred during the build.Error instantiating builder 'org.eclipse.m2e.core.maven2Builder'.Plug-in org.eclipse.m2e.core was unable to load class org.eclipse.m2e.core.internal.builder.Mav...
2018-03-14 09:12:33
754
空空如也
有时候项目启动报错,有时不会,不影响使用,求解答
2017-05-12
TA创建的收藏夹 TA关注的收藏夹
TA关注的人