1. 首先需要在JSP顶部引入jstl包
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
2.将unix时间戳字符串转为Date格式
<jsp:useBean id="myDate" class="java.util.Date"/>
<c:set target="${myDate}" property="time" value="${accountList.customerCreatetime}"/>
<c:set target="${myDate}" property="time" value="
3.转Date为可读格式
<fmt:formatDate pattern="yyyy-MM-dd hh:mm:ss" value="${myDate}" type="both"/>