前端:
<el-date-picker
v-model="addData.planShipmentDate"
type="datetime"
disabled
value-format="yyyy-MM-dd HH:mm:ss"
:placeholder="$t('BatchPanel.选择日期时间')"
>
</el-date-picker>
后端:
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
private Date planShipmentDate;//计划出货日期
标签:format,ss,前端,value,一致,格式 From: https://www.cnblogs.com/shaowangwu/p/16595882.html