function to_timestamp(timestamp with time zone, unknown) does not exist 东八区日期格式

解决办法:

实体类修改:添加时区

 

 mapper.xml修改:

 

 业务代码中进行赋值:

注意:

System.out.println("new Date()==========="+new Date());
输出结果:new Date()===========Tue Apr 07 20:18:51 CST 2020
最终落库的数据:

 东八区日期格式:

2020-04-07T02:43:19.248Z

posted @ 2020-04-07 20:16  ~码铃薯~  阅读(3909)  评论(0编辑  收藏  举报