解决 The type CellRangeAddress is deprecated的问题

版权声明:本文为博主原创文章,转载请注明出处。 https://blog.csdn.net/qq_24076135/article/details/78019988

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

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

改成

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

问题就解决了

猜你喜欢

转载自blog.csdn.net/qq_24076135/article/details/78019988
今日推荐