@JsonIgnore @OneToMany(mappedBy = "school",fetch = FetchType.LAZY) private List<Student> students = new ArrayList<>();
这里可以缓存,但是读缓存的时候list就为空了。又没有其他什么方法能处理的。
http://blog.csdn.net/u010681276/article/details/49099427
直接redis中查看对应的数据是否缓存成功了。