mirror of https://gitee.com/stylefeng/roses
【7.1.3】更新远程资源汇报json解析时间的问题
parent
22bb6eaaf4
commit
4580da6c00
|
@ -17,6 +17,13 @@
|
|||
|
||||
<dependencies>
|
||||
|
||||
<!--ResourceDefinition解析需要转化时间-->
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-annotations</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<!--web-->
|
||||
<!--ResourcePersistenceApi会用到web,用在提供feign接口时-->
|
||||
<dependency>
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
package cn.stylefeng.roses.kernel.scanner.api.pojo.resource;
|
||||
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.field.ChineseDescription;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -153,6 +154,7 @@ public class ResourceDefinition implements Serializable {
|
|||
* 资源添加日期
|
||||
*/
|
||||
@ChineseDescription("资源添加日期")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue