使用Pgsql时遇到Cannot convert the column of type TIMESTAMPTZ to requested type java.time.LocalDateTime. 翻译:无法将TIMESTAMPTZ类型的列转换为请求的java.time.LocalDateTime类型。 原因分析: 实体类的时间属性与数据库设置的属性不一致 这里timestaptz转换成LocalDateTime报错 解决办法:将实体类中的LocalDateTime 修改为Date,问题解决