原因最后发现出在customer这个类中,linkman类中写了toString方法,toString方法中有打印customer,但是若是customer写了toString方法,就会报错,只能打印customer这个类的地址,原因目前未知。
关于hibernatePro2中lazy=“false"之后打印会报错no session问题
猜你喜欢
转载自blog.csdn.net/weixin_42979871/article/details/87104822
今日推荐
周排行