ES时间格式化问题

 /**
     *20210412T154552.611Z
     */
    @Field(type = FieldType.Date, format = DateFormat.basic_date_time)
    private LocalDateTime newDate1;

    /**
     * 2021-04-12T15:45:52.611Z
     */
    @Field(type = FieldType.Date, format = DateFormat.date_time)
    private LocalDateTime newDate2;

    /**
     * 2021-04-12T15:45:52Z
     */
    @Field(type = FieldType.Date, format = DateFormat.date_time_no_millis)
    private LocalDateTime newDate3;

    /**
     * 2021-04-12 15:45:52
     */
    @Field(type = FieldType.Date,format = DateFormat.custom,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime newDate4;

    /**
     * 20210412T074552.611Z
     */
    @Field(type = FieldType.Date, format = DateFormat.basic_date_time)
    private Date oldDate1;

你可能感兴趣的:(ES)