java用list直接生成Excel文件

上传者: xuguiyi100 | 上传时间: 2021-05-19 00:10:50 | 文件大小: 629KB | 文件类型: ZIP
利用jxl包结合java反射机制和注释,直接把list生成对应的Excel文件,即只需传入list、对应生成的对象、标题就可以生成excel文件write(String title, List list,Class c),实现一个简单生成excel工具类

文件下载

资源详情

[{"title":"( 16 个子文件 629KB ) java用list直接生成Excel文件","children":[{"title":"ExcelDemo","children":[{"title":"bin","children":[{"title":"com","children":[{"title":"demo","children":[{"title":"refect","children":[{"title":"Refect.class <span style='color:#111;'> 306B </span>","children":null,"spread":false},{"title":"RefectImpl.class <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false}],"spread":true},{"title":"domain","children":[{"title":"Student.class <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"ExcelTest.class <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false}],"spread":true},{"title":"annotation","children":[{"title":"ExcelAnnotation.class <span style='color:#111;'> 554B </span>","children":null,"spread":false}],"spread":true},{"title":"utils","children":[{"title":"ExcelFileUtil.class <span style='color:#111;'> 5.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"demo","children":[{"title":"refect","children":[{"title":"Refect.java <span style='color:#111;'> 391B </span>","children":null,"spread":false},{"title":"RefectImpl.java <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"domain","children":[{"title":"Student.java <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"ExcelTest.java <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false}],"spread":true},{"title":"annotation","children":[{"title":"ExcelAnnotation.java <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false}],"spread":true},{"title":"utils","children":[{"title":"ExcelFileUtil.java <span style='color:#111;'> 3.95KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 352B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"jxl.jar <span style='color:#111;'> 669.39KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • Myth预言 :
    还可以,作为参考,要导出excel,具体数据还得自己编辑。
    2018-05-07
  • oGaiShiTaiBao :
    没啥大用,可以参考。
    2015-11-04
  • luozhanbin1987 :
    很有用,多谢分享
    2015-06-24
  • zbjbaggio1 :
    好用,不过得自己改改,写的不错
    2015-05-28
  • xiao3730392 :
    代码逻辑有点问题,不过已经解决了我的问题
    2014-06-18

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明