[代码] 运用注解 注解与需求生成Excel目标上 public class Excel {
@ExcelAnnotation("称号")
public String bookName;
http://www.fpfuzhou.com/linked/20130205.do http://www.fpzhuhai.com/linked/20130205.do; ;
@ExcelAnnotation("行数")
public int rows;
@ExcelAnnotation("创立时刻")
public Date createTime;
@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();
}
}