使用maven引入Apache poi jar包


maven构建的项目-->pom.xml文件

  • eclipse提供Dependencies直接添加依赖jar包的工具:直接搜索poi以及poi-ooxml即可,maven会自动依赖需要的jar包:
  1. poi提供microsoft office旧版本支持,eg .xls Excel
  2. poi-ooxml提供microsoft office新版本支持,eg .xlsx Excel
  • 或者手动修改pom.xml,在添加jar包依赖的地方加入
  1. 1 <dependency>
    2         <groupId>org.apache.poi</groupId>
    3         <artifactId>poi</artifactId>
    4         <version>3.10-FINAL</version>
    5     </dependency>
    1 <dependency>
    2         <groupId>org.apache.poi</groupId>
    3         <artifactId>poi-ooxml</artifactId>
    4         <version>3.10-FINAL</version>
    5     </dependency>

     


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM