No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

README.md 10 KiB

hace 7 años
hace 10 años
hace 7 años
hace 10 años
hace 7 años
hace 9 años
hace 5 años
hace 7 años
hace 9 años
hace 7 años
hace 7 años
hace 7 años
hace 6 años
hace 6 años
hace 5 años
hace 5 años
hace 6 años
hace 7 años
hace 7 años
hace 7 años
hace 7 años
hace 10 años
hace 10 años
hace 10 años
hace 10 años
hace 7 años
hace 10 años
hace 5 años
hace 10 años
hace 10 años
hace 5 años
hace 10 años
hace 10 años
hace 5 años
hace 10 años
hace 10 años
hace 5 años
hace 10 años
hace 5 años
hace 10 años
hace 9 años
hace 6 años
hace 6 años
hace 6 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. EasyPoi Excel和 Word简易工具类
  2. ===========================
  3. easypoi功能如同名字easy,主打的功能就是容易,让一个没见接触过poi的人员
  4. 就可以方便的写出Excel导出,Excel模板导出,Excel导入,Word模板导出,通过简单的注解和模板
  5. 语言(熟悉的表达式语法),完成以前复杂的写法
  6. 官网: http://opensource.afterturn.cn/
  7. 邮箱: qrb.jueyue@foxmail.com
  8. QQ群: 1群 364192721(满) 2 群116844390
  9. 开发者:魔幻之翼 xf.key@163.com
  10. 优秀团队,承接私活,加微信:13165188222 ,添加备注一众
  11. Spring Boot 支持 https://gitee.com/lemur/easypoi-spring-boot-starter
  12. [官网](https://opensource.afterturn.cn)
  13. **开发指南**
  14. **[https://opensource.afterturn.cn/doc/easypoi.html](http://opensource.afterturn.cn/doc/easypoi.html)**
  15. [用户征集](https://gitee.com/lemur/easypoi/issues/IFDX7)
  16. 按登记顺序展示,如果你正在使用EasyPoi欢迎在 https://gitee.com/lemur/easypoi/issues/IFDX7 登记。仅作为开源参考,不作其它用途
  17. - [一众科技](http://studio.afterturn.cn/)
  18. - [博丰(深圳)跨境电商服务有限公司 ](http://www.bfeservice.com/)
  19. - [陕西昊景无线网络技术有限公司](http://www.hjwxbd.com)
  20. - [湖北省楚天云有限公司](http://www.chutianyun.gov.cn)
  21. - [博彦科技](http://www.beyondsoft.com)
  22. - [图灵谷北京科技有限公司](http://www.turingoal.com)
  23. - [多贝拉](https://www.duobeila.cn/)
  24. - [河南八六三软件股份有限公司](http://www.863soft.com/cn/)
  25. - [网易](http://www.netease.com)
  26. - [港华燃气](http://www.towngas.com.cn/)
  27. - [北京易才博普奥管理顾问有限公司](https://www.weifenghr.com/)
  28. 版本介绍
  29. [history.md](https://gitee.com/lemur/easypoi/blob/master/history.md)
  30. 基础示例
  31. [basedemo.md](https://gitee.com/lemur/easypoi/blob/master/basedemo.md)
  32. [测试项目](http://git.oschina.net/lemur/easypoi-test): http://git.oschina.net/lemur/easypoi-test
  33. **!!! 3.0 版本开始全新包名和GROUPID cn.afterturn**
  34. ---------------------------
  35. EasyPoi的主要特点
  36. --------------------------
  37. 1.设计精巧,使用简单
  38. 2.接口丰富,扩展简单
  39. 3.默认值多,write less do more
  40. 4.AbstractView 支持,web导出可以简单明了
  41. ---------------------------
  42. EasyPoi的几个入口工具类
  43. ---------------------------
  44. 1.ExcelExportUtil Excel导出(
  45. 普通导出,模板导出)
  46. 2.ExcelImportUtil Excel导入
  47. 3.WordExportUtil Word导出(只支持docx ,doc版本poi存在图片的bug,暂不支持)
  48. ---------------------------
  49. 关于Excel导出XLS和XLSX区别
  50. ---------------------------
  51. 1.导出时间XLS比XLSX快2-3倍
  52. 2.导出大小XLS是XLSX的2-3倍或者更多
  53. 3.导出需要综合网速和本地速度做考虑^~^
  54. ---------------------------
  55. 几个工程的说明
  56. ---------------------------
  57. 1.easypoi 父包--作用大家都懂得
  58. 2.easypoi-annotation 基础注解包,作用与实体对象上,拆分后方便maven多工程的依赖管理
  59. 3.easypoi-base 导入导出的工具包,可以完成Excel导出,导入,Word的导出,Excel的导出功能
  60. 4.easypoi-web 耦合了spring-mvc 基于AbstractView,极大的简化spring-mvc下的导出功能
  61. 5.sax 导入使用xercesImpl这个包(这个包可能造成奇怪的问题哈),word导出使用poi-scratchpad,都作为可选包了
  62. --------------------------
  63. maven
  64. --------------------------
  65. maven库应该都可以了
  66. SNAPSHOT 版本-很少发布
  67. https://oss.sonatype.org/content/groups/public/
  68. ```xml
  69. <dependency>
  70. <groupId>cn.afterturn</groupId>
  71. <artifactId>easypoi-spring-boot-starter</artifactId>
  72. <version>4.1.0</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>cn.afterturn</groupId>
  76. <artifactId>easypoi-base</artifactId>
  77. <version>4.1.0</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>cn.afterturn</groupId>
  81. <artifactId>easypoi-web</artifactId>
  82. <version>4.1.0</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>cn.afterturn</groupId>
  86. <artifactId>easypoi-annotation</artifactId>
  87. <version>4.1.0</version>
  88. </dependency>
  89. ```
  90. --------------------------
  91. pom说明
  92. --------------------------
  93. word和sax读取的时候才使用,就不是必须的了,请手动引用,JSR303的校验也是可选的,PDF的jar也是可选的
  94. ```xml
  95. <!-- sax 读取时候用到的 -->
  96. <dependency>
  97. <groupId>xerces</groupId>
  98. <artifactId>xercesImpl</artifactId>
  99. <version>${xerces.version}</version>
  100. <optional>true</optional>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.apache.poi</groupId>
  104. <artifactId>poi-scratchpad</artifactId>
  105. <version>${poi.version}</version>
  106. <optional>true</optional>
  107. </dependency>
  108. <!-- Word 需要使用 -->
  109. <dependency>
  110. <groupId>org.apache.poi</groupId>
  111. <artifactId>ooxml-schemas</artifactId>
  112. <version>1.3</version>
  113. <optional>true</optional>
  114. </dependency>
  115. <!-- 校验,下面两个实现 -->
  116. <dependency>
  117. <groupId>org.hibernate</groupId>
  118. <artifactId>hibernate-validator</artifactId>
  119. <version>5.1.3.Final</version>
  120. <optional>true</optional>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.apache.bval</groupId>
  124. <artifactId>org.apache.bval.bundle</artifactId>
  125. <version>1.1.0</version>
  126. </dependency>
  127. <!-- PDF -->
  128. <dependency>
  129. <groupId>com.itextpdf</groupId>
  130. <artifactId>itextpdf</artifactId>
  131. <version>5.5.6</version>
  132. <optional>true</optional>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.itextpdf</groupId>
  136. <artifactId>itext-asian</artifactId>
  137. <version>5.2.0</version>
  138. <optional>true</optional>
  139. </dependency>
  140. ```
  141. -----------------
  142. Test 测试覆盖率
  143. ----------------
  144. |包|类|方法|行|
  145. |----|----|----|----|
  146. cn|100% (0/0)|100% (0/0)|100% (0/0)
  147. cn.afterturn|100% (0/0)|100% (0/0)|100% (0/0)
  148. cn.afterturn.easypoi|0% (0/1)|0% (0/1)|0% (0/3)
  149. cn.afterturn.easypoi.cache|100% (6/6)|83% (10/12)|60% (40/66)
  150. cn.afterturn.easypoi.cache.manager|100% (3/3)|62% (5/8)|54% (29/53)
  151. cn.afterturn.easypoi.configuration|0% (0/2)|0% (0/1)|0% (0/5)
  152. cn.afterturn.easypoi.entity|100% (1/1)|83% (15/18)|66% (26/39)
  153. cn.afterturn.easypoi.entity.vo|100% (0/0)|100% (0/0)|100% (0/0)
  154. cn.afterturn.easypoi.excel|100% (3/3)|73% (19/26)|59% (44/74)
  155. cn.afterturn.easypoi.excel.annotation|100% (0/0)|100% (0/0)|100% (0/0)
  156. cn.afterturn.easypoi.excel.entity|83% (5/6)|66% (85/127)|63% (185/290)
  157. cn.afterturn.easypoi.excel.entity.enmus|100% (3/3)|88% (8/9)|92% (13/14)
  158. cn.afterturn.easypoi.excel.entity.params|100% (6/6)|84% (94/111)|75% (160/211)
  159. cn.afterturn.easypoi.excel.entity.result|100% (2/2)|76% (16/21)|65% (26/40)
  160. cn.afterturn.easypoi.excel.entity.sax|100% (1/1)|33% (2/6)|45% (5/11)
  161. cn.afterturn.easypoi.excel.entity.vo|100% (1/1)|100% (1/1)|100% (3/3)
  162. cn.afterturn.easypoi.excel.export|100% (2/2)|94% (17/18)|84% (202/238)
  163. cn.afterturn.easypoi.excel.export.base|100% (2/2)|97% (33/34)|88% (353/399)
  164. cn.afterturn.easypoi.excel.export.styler|100% (4/4)|86% (19/22)|97% (122/125)
  165. cn.afterturn.easypoi.excel.export.template|100% (3/3)|95% (43/45)|92% (422/457)
  166. cn.afterturn.easypoi.excel.graph|100% (0/0)|100% (0/0)|100% (0/0)
  167. cn.afterturn.easypoi.excel.graph.builder|0% (0/1)|0% (0/8)|0% (0/92)
  168. cn.afterturn.easypoi.excel.graph.constant|100% (0/0)|100% (0/0)|100% (0/0)
  169. cn.afterturn.easypoi.excel.graph.entity|0% (0/3)|0% (0/26)|0% (0/49)
  170. cn.afterturn.easypoi.excel.html|100% (2/2)|92% (24/26)|84% (242/287)
  171. cn.afterturn.easypoi.excel.html.css|100% (2/2)|100% (10/10)|94% (166/175)
  172. cn.afterturn.easypoi.excel.html.css.impl|100% (6/6)|60% (9/15)|74% (111/149)
  173. cn.afterturn.easypoi.excel.html.entity|100% (0/0)|100% (0/0)|100% (0/0)
  174. cn.afterturn.easypoi.excel.html.entity.style|100% (3/3)|100% (53/53)|100% (87/87)
  175. cn.afterturn.easypoi.excel.html.helper|80% (4/5)|77% (24/31)|67% (154/228)
  176. cn.afterturn.easypoi.excel.imports|100% (2/2)|92% (26/28)|79% (361/454)
  177. cn.afterturn.easypoi.excel.imports.base|100% (1/1)|100% (9/9)|89% (102/114)
  178. cn.afterturn.easypoi.excel.imports.sax|100% (2/2)|100% (8/8)|70% (56/80)
  179. cn.afterturn.easypoi.excel.imports.sax.parse|100% (1/1)|77% (7/9)|58% (44/75)
  180. cn.afterturn.easypoi.exception|100% (0/0)|100% (0/0)|100% (0/0)
  181. cn.afterturn.easypoi.exception.excel|50% (1/2)|20% (3/15)|18% (6/32)
  182. cn.afterturn.easypoi.exception.excel.enums|50% (1/2)|44% (4/9)|40% (9/22)
  183. cn.afterturn.easypoi.exception.word|0% (0/1)|0% (0/3)|0% (0/6)
  184. cn.afterturn.easypoi.exception.word.enmus|0% (0/1)|0% (0/4)|0% (0/10)
  185. cn.afterturn.easypoi.handler|100% (0/0)|100% (0/0)|100% (0/0)
  186. cn.afterturn.easypoi.handler.impl|100% (1/1)|33% (2/6)|44% (4/9)
  187. cn.afterturn.easypoi.handler.inter|100% (0/0)|100% (0/0)|100% (0/0)
  188. cn.afterturn.easypoi.hanlder|0% (0/1)|0% (0/1)|0% (0/17)
  189. cn.afterturn.easypoi.pdf|100% (1/1)|50% (1/2)|33% (1/3)
  190. cn.afterturn.easypoi.pdf.entity|100% (1/1)|52% (10/19)|47% (17/36)
  191. cn.afterturn.easypoi.pdf.export|100% (1/1)|100% (14/14)|85% (131/153)
  192. cn.afterturn.easypoi.pdf.styler|100% (1/1)|100% (4/4)|56% (9/16)
  193. cn.afterturn.easypoi.test|100% (0/0)|100% (0/0)|100% (0/0)
  194. cn.afterturn.easypoi.test.en|100% (3/3)|93% (15/16)|93% (31/33)
  195. cn.afterturn.easypoi.test.entity|91% (11/12)|50% (62/122)|57% (117/202)
  196. cn.afterturn.easypoi.test.entity.check|100% (2/2)|50% (8/16)|69% (18/26)
  197. cn.afterturn.easypoi.test.entity.groupname|75% (3/4)|46% (25/54)|52% (48/92)
  198. cn.afterturn.easypoi.test.entity.img|100% (1/1)|100% (8/8)|100% (16/16)
  199. cn.afterturn.easypoi.test.entity.samename|100% (1/1)|100% (6/6)|100% (10/10)
  200. cn.afterturn.easypoi.test.entity.statistics|100% (1/1)|100% (12/12)|100% (19/19)
  201. cn.afterturn.easypoi.test.entity.temp|80% (4/5)|94% (32/34)|38% (52/134)
  202. cn.afterturn.easypoi.test.web|100% (0/0)|100% (0/0)|100% (0/0)
  203. cn.afterturn.easypoi.test.web.cfg|0% (0/1)|0% (0/1)|0% (0/4)
  204. cn.afterturn.easypoi.tohtml|0% (0/1)|0% (0/4)|0% (0/13)
  205. cn.afterturn.easypoi.util|100% (11/11)|85% (84/98)|73% (668/908)
  206. cn.afterturn.easypoi.view|0% (0/13)|0% (0/27)|0% (0/376)
  207. cn.afterturn.easypoi.word|100% (1/1)|33% (1/3)|20% (1/5)
  208. cn.afterturn.easypoi.word.entity|100% (2/2)|44% (4/9)|45% (27/60)
  209. cn.afterturn.easypoi.word.entity.params|50% (1/2)|22% (5/22)|14% (8/56)
  210. cn.afterturn.easypoi.word.parse|100% (1/1)|91% (11/12)|94% (97/103)
  211. cn.afterturn.easypoi.word.parse.excel|100% (2/2)|90% (10/11)|70% (95/135)