Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试通过传递 XSSFCell.CELL_TYPE_STRING 来设置单元格类型值。但它抛出错误“没有找到属性的静态属性描述符,CELL_TYPE_STRING”
cell.setCellType(XSSFCell.CELL_TYPE_STRING)
首先检查您的导入,应该属于的 XSSFCell 类
包 org.apache.poi.xssf.usermodel;
也许进口有问题
你也可以试试
单元格.CELL_TYPE_STRING
.setCellType