使用JdbcTemplate 操作PostgreSQL,当where条件中有timestamp类型时,报错operator does not exist: timestamp w/out timezone

今天遇到一个问题,找了还半天,Google一下,官网显示是一个bug。

思考一番肯定是类型出了问题。

Controller:

Service:转化时间戳

Dao:

一波转换搞定!

原文地址:https://www.cnblogs.com/zacky31/p/8711553.html