当前位置: 首页 > 图灵资讯 > 技术篇> MySQL数据库中date datetime timestamp三个时间类型与实体类类型对应关系

MySQL数据库中date datetime timestamp三个时间类型与实体类类型对应关系

来源:图灵教育
时间:2023-06-25 14:16:42

Java类型MySQL类型是否成功,datedatetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimetimeti@Datapublic class FoursShopOrder {        private static final String FORMAT = "yyyy-MM-dd HH:mm:ss";    public static final String TIME_ZONE = "GMT+8";    /**     * 订单时间     */    @JsonFormat(pattern= FORMAT, timezone =TIME_ZONE)    private Timestamp orderTime;}