1.使用功能
@Datapublic class AppPopConfigVo implements Serializable {private static final long serialVersionUID = 8402132455896673369L;/*** 用户类型:0|全部用户 1|指定用户*/private Integer userType;/*** Json->Bean的时候进行时间格式序列化*/@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")private Date startTime;/*** 暂时没研究,看源码是可以allSetter似乎可以处理*/@JsonIgnorePropertiesprivate Integer linkType;/*** Json->Bean的时候可以使用别名*/@JsonAlias("id")private Long uid;/*** 忽略这个字段,序列化和反序列的时候均不参与*/@JsonIgnoreprivate String userName;/*** 这个是fastjosn的处理序列化反序列化时的自定义*/@JSONField(serialize=false)private Integer channelId;}
