LocalDateTime属性传参格式 yyyy-MM-dd HH:mm:ss

@ApiModel
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class MainMessageSaveReq implements Serializable {
@ApiModelProperty(value = "发布时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime publishTime;
}

posted @ 2022-03-24 10:31  春天里的桃花  阅读(383)  评论(0编辑  收藏  举报