Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

README.md 4.5 KiB

10 anni fa
10 anni fa
10 anni fa
9 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. ===========================
  2. EasyPoi Excel和 Word简易工具类
  3. ===========================
  4. easypoi功能如同名字easy,主打的功能就是容易,让一个没见接触过poi的人员
  5. 就可以方便的写出Excel导出,Excel模板导出,Excel导入,Word模板导出,通过简单的注解和模板
  6. 语言(熟悉的表达式语法),完成以前复杂的写法
  7. 作者博客:http://blog.afterturn.cn/
  8. 作者邮箱: qrb.jueyue@gmail.com
  9. QQ群: 364192721
  10. 开发者:魔幻之翼 xf.key@163.com
  11. **开发指南**
  12. **[http://easypoi.mydoc.io](http://easypoi.mydoc.io)**
  13. [开发文档请查看DOC下面的EasyPoi教程](http://git.oschina.net/jueyue/easypoi/blob/master/doc/EasyPoi%E6%95%99%E7%A8%8B.docx?dir=0&filepath=doc%2FEasyPoi%E6%95%99%E7%A8%8B.docx&oid=133ebde5641f128420023dbdc2533ab4b53c7792&sha=4c8d94c80544811e2e358518bad6c689a63c13e9)
  14. !!!2.1.6 版本开始和之前的版本校验不兼用,使用JSR303的校验,删除了之前的注解,请注意
  15. !!! 2.3.0 模板导出有问题,请使用2.3.0.1修复版本
  16. 版本介绍
  17. history.md
  18. 基础示例
  19. basedemo.md
  20. [测试项目](http://git.oschina.net/jueyue/easypoi-test): http://git.oschina.net/jueyue/easypoi-test
  21. **!!! 3.0.1 版本开始全新包名和GROUPID cn.afterturn**
  22. ---------------------------
  23. EasyPoi的主要特点
  24. --------------------------
  25. 1.设计精巧,使用简单
  26. 2.接口丰富,扩展简单
  27. 3.默认值多,write less do more
  28. 4.AbstractView 支持,web导出可以简单明了
  29. ---------------------------
  30. EasyPoi的几个入口工具类
  31. ---------------------------
  32. 1.ExcelExportUtil Excel导出(
  33. 普通导出,模板导出)
  34. 2.ExcelImportUtil Excel导入
  35. 3.WordExportUtil Word导出(只支持docx ,doc版本poi存在图片的bug,暂不支持)
  36. ---------------------------
  37. 关于Excel导出XLS和XLSX区别
  38. ---------------------------
  39. 1.导出时间XLS比XLSX快2-3倍
  40. 2.导出大小XLS是XLSX的2-3倍或者更多
  41. 3.导出需要综合网速和本地速度做考虑^~^
  42. ---------------------------
  43. 几个工程的说明
  44. ---------------------------
  45. 1.easypoi 父包--作用大家都懂得
  46. 2.easypoi-annotation 基础注解包,作用与实体对象上,拆分后方便maven多工程的依赖管理
  47. 3.easypoi-base 导入导出的工具包,可以完成Excel导出,导入,Word的导出,Excel的导出功能
  48. 4.easypoi-web 耦合了spring-mvc 基于AbstractView,极大的简化spring-mvc下的导出功能
  49. 5.sax 导入使用xercesImpl这个包(这个包可能造成奇怪的问题哈),word导出使用poi-scratchpad,都作为可选包了
  50. --------------------------
  51. maven
  52. --------------------------
  53. maven库应该都可以了
  54. SNAPSHOT 版本
  55. https://oss.sonatype.org/content/groups/public/
  56. ```xml
  57. <dependency>
  58. <groupId>cn.afterturn</groupId>
  59. <artifactId>easypoi-base</artifactId>
  60. <version>3.0.1-SNAPSHOT</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>cn.afterturn</groupId>
  64. <artifactId>easypoi-web</artifactId>
  65. <version>3.0.1-SNAPSHOT</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>cn.afterturn</groupId>
  69. <artifactId>easypoi-annotation</artifactId>
  70. <version>3.0.1-SNAPSHOT</version>
  71. </dependency>
  72. ```
  73. --------------------------
  74. pom说明
  75. --------------------------
  76. word和sax读取的时候才使用,就不是必须的了,请手动引用,JSR303的校验也是可选的,PDF的jar也是可选的
  77. ```xml
  78. <!-- sax 读取时候用到的 -->
  79. <dependency>
  80. <groupId>xerces</groupId>
  81. <artifactId>xercesImpl</artifactId>
  82. <version>${xerces.version}</version>
  83. <optional>true</optional>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.poi</groupId>
  87. <artifactId>poi-scratchpad</artifactId>
  88. <version>${poi.version}</version>
  89. <optional>true</optional>
  90. </dependency>
  91. <!-- 校验,下面两个实现 -->
  92. <dependency>
  93. <groupId>org.hibernate</groupId>
  94. <artifactId>hibernate-validator</artifactId>
  95. <version>5.1.3.Final</version>
  96. <optional>true</optional>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.bval</groupId>
  100. <artifactId>org.apache.bval.bundle</artifactId>
  101. <version>1.1.0</version>
  102. </dependency>
  103. <!-- PDF -->
  104. <dependency>
  105. <groupId>com.itextpdf</groupId>
  106. <artifactId>itextpdf</artifactId>
  107. <version>5.5.6</version>
  108. <optional>true</optional>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.itextpdf</groupId>
  112. <artifactId>itext-asian</artifactId>
  113. <version>5.2.0</version>
  114. <optional>true</optional>
  115. </dependency>
  116. ```