[代码] 运用注解 注解与需求生成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;
转载于:https://www.cnblogs.com/fpqqchao/archive/2013/02/13/2910679.html