最开始出现No row with the given identifier exists错误,后来发现是手动清空表时忘记删除关联表了
然后出现这个错误illegal access to loading collection,
Google了半天,后来小小一改就解决了,也不知为什么,呵呵
将pojo中的private Set student = new HashSet(0);
改为private Set student = new HashSet();就行了,不知为什么,呵呵
希望高人路过,哈哈
然后出现这个错误illegal access to loading collection,
Google了半天,后来小小一改就解决了,也不知为什么,呵呵
将pojo中的private Set student = new HashSet(0);
改为private Set student = new HashSet();就行了,不知为什么,呵呵
希望高人路过,哈哈
本文介绍了一种在Java中遇到的illegalaccesstoloadingcollection错误,并分享了解决该问题的方法。通过修改HashSet实例化的方式,成功解决了这一难题。
10万+

被折叠的 条评论
为什么被折叠?



