2018年6月30日

postgres linux系统下连接方法

摘要: psql -U 用户名 -h ip -p 端口号 -w 库名称 查询实例下的数据结构 语法:select 字段名 from 实例名“.”表名(account.tb_user) 如: select 1 from account.tb_user 阅读全文

posted @ 2018-06-30 18:01 零度千里 阅读(989) 评论(0) 推荐(0) 编辑

使用Jackson的@JsonFormat注解时出现少了 8 个小时

摘要: 比如数据库存的日期是2018-01-05,转成json则变成了2018-01-04 解决办法: @JsonFormat(pattern="yyyy-MM-dd") public Date getRegistDate() { return this.registDate; } 改成 @JsonForm 阅读全文

posted @ 2018-06-30 17:19 零度千里 阅读(2078) 评论(0) 推荐(0) 编辑

导航