您的位置:首页 > 其它

Excel解析与数据生成(撑持JXL,POI)

2013-02-13 02:30 495 查看
[代码] 运用注解 注解与需求生成Excel目标上 public class Excel {

@ExcelAnnotation("称号")
public String bookName;

@ExcelAnnotation("行数")
public int rows;

@ExcelAnnotation("创立时刻")
public Date createTime; http://www.aaafaipiao.com/linked/20130212.do; 
@ExcelAnnotation("内容")
public Date content;

public Date getContent() {
return content;
}

public void setContent(Date content) {
this.content = content;
}

public String getBookName() {
return bookName;
}

public void setBookName(String bookName) {
this.bookName = bookName;
}

public int getRows() {
return rows;
}

public void setRows(int rows) {
this.rows = rows;
}

public Date getCreateTime() {
return createTime;
}

public void setCreateTime(Date createTime) {
this.createTime = createTime;
}

@Override
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("{[bookName : "   (null == bookName ? "" : bookName)
"]");
buffer.append("[rows : "   rows   "]");
buffer.append("[createTime : "
(null == createTime ? "" : DateTools.format(createTime))
"]}");
return buffer.toString();
}

} http://www.fpfuzhou.com/linked/20130212.do;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: