jsp页面引入 :<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
将时间转为指定格式时间
<td><fmt:formatDate value="${log.inserttime}" pattern="yyyy-MM-dd HH:mm:ss" timeZone="GMT-8"/></td>
jsp页面引入 :<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
将时间转为指定格式时间
<td><fmt:formatDate value="${log.inserttime}" pattern="yyyy-MM-dd HH:mm:ss" timeZone="GMT-8"/></td>