[英]Could not able to access CELL_TYPE_STRING variable from XSSFCell
I am trying to set cell type value by passing XSSFCell.CELL_TYPE_STRING.我试图通过传递 XSSFCell.CELL_TYPE_STRING 来设置单元格类型值。 But it is throwing error "No static property descriptor found for property, CELL_TYPE_STRING"
但它抛出错误“找不到属性的静态属性描述符,CELL_TYPE_STRING”
cell.setCellType(XSSFCell.CELL_TYPE_STRING) cell.setCellType(XSSFCell.CELL_TYPE_STRING)
first check your imports, XSSFCell class supposed to belong to首先检查您的导入,XSSFCell 类应该属于
package org.apache.poi.xssf.usermodel;
包 org.apache.poi.xssf.usermodel;
maybe there is smth wrong with imports也许进口有问题
also you can try你也可以试试
Cell.CELL_TYPE_STRING
单元格。CELL_TYPE_STRING
.setCellType
expekts int as an argument should be no difference.setCellType
expekts int 作为参数应该没有区别
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.