Skip to content

关于时间戳格式化成时间格式 #3407

@srcker

Description

@srcker

请描述您的问题

在springboot3中 format时间没有生效 还是返回

{"id":5,"create_time":20250317110356}
    // 创建时间(Unix时间戳 毫秒)
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JSONField(name = "create_time",ordinal = 14, format = "yyyy-MM-dd HH:mm:ss")
    private Long createTime;

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions