噜啦_0
2017-03-29 21:47
org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: Property 'startTime' not found on type seckill.bean.SeckillBean
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:561)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
<c:forEach items="${list}" var="sk"> <tr> <td>${sk.name}</td> <td>${sk.number}</td> <td> <fmt:formatDate value="${sk.startTime}" pattern="yyyy-MM-dd HH:mm:ss" /> </td> <td> <fmt:formatDate value="${sk.endTime}" pattern="yyyy-MM-dd HH:mm:ss" /> </td> <td> <fmt:formatDate value="${sk.createTime}" pattern="yyyy-MM-dd HH:mm:ss" /> </td> <td><a class="btn btn-info" href="/seckill/${sk.seckillId}/detail" target="_blank">详情</a></td> </tr> </c:forEach>
package seckill.bean; import java.util.Date; public class SeckillBean { private long seckillId; private String name; private int number; private Date createTime; private Date startTime; private Date endTime; public long getSeckillId() { return seckillId; } public void setSeckillId(long seckillId) { this.seckillId = seckillId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getNumber() { return number; } public void setNumber(int number) { this.number = number; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getStartTiem() { return startTime; } public void setStartTiem(Date startTiem) { this.startTime = startTiem; } public Date getEndTime() { return endTime; } public void setEndTime(Date endTime) { this.endTime = endTime; } @Override public String toString() { return "SecKillBean [seckillId=" + seckillId + ", name=" + name + ", number=" + number + ", createTime=" + createTime + ", startTiem=" + startTime + ", endTime=" + endTime + "]"; } }
public Date getStartTiem() {
return startTime;
}
public void setStartTiem(Date startTiem) {
this.startTime = startTiem;
}
这儿的startTime写成了startTiem
Java高并发秒杀API之web层
66085 学习 · 395 问题
相似问题
回答 2
回答 1