- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://gitee.com/wolf1688/common.office
- 软件文档: https://gitee.com/wolf1688/common.office
软件介绍
java组件,实现Excel,word,pdf等常用office的
#目前只完善Excel的导入导出,方便简洁。具体步骤如下: 1,定义与Excel对应的bean类,加上配置。
@ExcelSheet(sheetIndex=0,titleIndex=1,dataIndex=2)
public class UploadUser {
@ExcelColumn(fieldTitle = "登录名称", columnIndex = 0)
private String username;
@ExcelColumn(fieldTitle = "角色", columnIndex = 1)
//@ColumnDataHandler("io.tsing.admin.util.RoleTranslate")
private String role;
@ExcelColumn(fieldTitle = "昵称", columnIndex = 2)
private String nickname;
@ExcelColumn(fieldTitle = "姓名", columnIndex = 3)
private String realname;
@ExcelColumn(fieldTitle = "性别", columnIndex = 4)
private String gender;
@ExcelColumn(fieldTitle = "密码", columnIndex = 5)
//@ColumnDataHandler("io.tsing.admin.util.PassWordTranslate")
private String password;
@ExcelColumn(fieldTitle = "邮件", columnIndex = 6)
private String email;
@ExcelColumn(fieldTitle = "手机号码", columnIndex = 7)
private String mobile;
@ExcelColumn(fieldTitle = "电话号码", columnIndex = 8)
private String telephone;
get*(){}
set*(*){}
}2、调用导入导出方法,就可以实现导入导出了。
public void static main(String arg[]) {
ExcelUtil excelUtil = new ExcelUtil();
//导入:
InputStream inputStream=new FileInputStream(String.format("%s%s", path, "persionTempalte.xlsx"));
List s=excelUtil.parse(inputStream, UploadUser.class);
导出: File file = new File(String.format("%s%s", path, "text.xlsx"));
OutputStream os = new FileOutputStream(file);
excelUtil.export(os, list, maps, null);
}#就只要俩个步骤就可以实现导出导入,而且支持大数据的导出导入,还有可以个性化处理每一列的数据。
C++沉思录
Andrew Koenig、Barbara Moo / 黄晓春、孟岩(审校) / 人民邮电出版社 / 2002-11-01 / 50.00元
《C++ 沉思录》集中反映了C++的关键思想和编程技术,不仅告诉你如何编程,还告诉你为什么要这样编程。本书曾出现在众多的C++专家推荐书目中。 这将是C++程序员的必读之作。因为: 它包含了丰富的C++思想和技术,从详细的代码实例总结出程序设计的原则和方法。 不仅教你如何遵循规则,还教你如何思考C++编程。 既包括面向对象编程也包括泛型编程。 探究STL这一近年来C++最重要的新成果的内在思想。一起来看看 《C++沉思录》 这本书的介绍吧!
