解决 The type CellRangeAddress is deprecated的问题

来源:互联网 发布:淘宝卖进口食品要求 编辑:程序博客网 时间:2024/06/07 11:55

有时在使用JAVA POI 操作Excel合并单元格的时候,会遇到The type CellRangeAddress is deprecated这样的问题.
而出现这个问题的原因是包路径过时.
只需要将

import org.apache.poi.hssf.util.CellRangeAddress;

改成

import org.apache.poi.ss.util.CellRangeAddress;

问题就解决了

阅读全文
0 0
原创粉丝点击