摘要: Redis反序列化错误 最近使用Redis做缓存,用着好好的,返现有一个方法的在从Redis获取缓存时报错,无法正常获取到缓存,从报错信息看,是不能发序列化。在这里记录一下解决方法。 直接贴上错误:Could not read JSON: Cannot construct instance of j 阅读全文
posted @ 2020-03-15 18:00 怎么改 阅读(9352) 评论(0) 推荐(1) 编辑
摘要: 在Bean上可以添加一些验证的注解,例如:@NotNull @NotBlank public class User { @NotBlank private String name; @NotNull private Integer age; @NotEmpty private List<String 阅读全文
posted @ 2020-03-15 17:59 怎么改 阅读(363) 评论(0) 推荐(0) 编辑