MyBatis自学(5):延迟加载

  在MyBatis配置文件中加入

  <setting name="lazyLoadingEnabled" value="true"/>

 即可。
原文地址:https://www.cnblogs.com/yaokaizhi/p/9561251.html