SQLite时间戳格式,在springboot报转换异常

SQLite时间戳格式,在springboot报转换异常

数据库定义: gmt_create 类型datetime
需要在application.yml数据库url里面加上

url: jdbc:sqlite:target/classes/doc/local.db?date_string_format=yyyy-MM-dd HH:mm:ss

实体类

carbon (1).png

原文地址:https://www.cnblogs.com/mengw/p/12629262.html