摘要
随着Java语言越来越多地被选择用于B/S结构系统的开发语言,利用POI解析技术操作Excel文件越来越广泛。在POI组件下,采用Java反射机制及自定义注解原理,设计实现了数据库与Excel文件的数据交互。此方法不仅能保证数据导入的完整性,而且能免去数据导出后重新编辑的复杂性,从而提高POI实现Excel数据导入/导出的灵活性、重用性和易扩展性。
With more and more systems on B/S structure being developed by Java, operating Excel by POI is used more widely. Under POI component, applying Java reflection and custom annotation, data interaction between database and Excel files is designed and realized. This method can not only ensure the integrity of data import, but also avoid the complexity of the data export. Flexibility, re-usability and ductility of using POI in importing and exporting Excel files are improved.
出处
《计算机时代》
2015年第1期38-39,47,共3页
Computer Era