更改 pojo-> Bot 的时区设置
This commit is contained in:
parent
6a1aace1c0
commit
3de67ee47c
|
@ -14,21 +14,22 @@ import java.util.Date;
|
|||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Bot {
|
||||
// 主键自增
|
||||
// 主键自增
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
// 注意:在pojo中需要定义成userId,在queryWrapper中的名称仍然为user_id
|
||||
// 注意:在pojo中需要定义成userId,在queryWrapper中的名称仍然为user_id
|
||||
private Integer userId;
|
||||
private String title;
|
||||
private String description;
|
||||
private String content;
|
||||
private Integer rating;
|
||||
// pojo中定义日期格式的注解:@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
// pojo中定义日期格式的注解:@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
// timezone 用于修改时区
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
|
||||
private Date createtime;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
|
||||
private Date modifytime;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue