在MyBatis配置文件中加入
<setting name="lazyLoadingEnabled" value="true"/> 即可。
posted on 2018-08-30 16:59 码农小菜鸡 阅读(80) 评论(0) 收藏 举报