1.pom文件引入依赖
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
2.引入标签库
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
3.转换
<fmt:formatDate value="${news.newsCreateTime}" type="both"/>