Ver código fonte

bugfix-发布时间格式化

Aslee 2 anos atrás
pai
commit
39b69338a2

+ 1 - 1
src/main/java/com/caimei/www/pojo/baike/BaikeProduct.java

@@ -127,7 +127,7 @@ public class BaikeProduct implements Serializable {
     /**
      * 发布时间
      */
-    @DateTimeFormat(pattern = "yyyy-MM-dd")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
     private Date publishTime;
     /**
      * 是否置顶标识:0否,1是