mybatis级联查询懒加载配置
springboot整合mybatis懒加载
mybatis-plus配置
application.properties
#配置mybatis级联查询懒加载
mybatis-plus.configuration.aggressive-lazy-loading=false
mybatis-plus.configuration.lazy-loading-enabled=true
mybaits配置
application.properties
#配置mybatis级联查询懒加载
mybatis.configuration.aggressive-lazy-loading=false
mybatis.configuration.lazy-loading-enabled=true
ssm项目配置懒加载
在conf文件中配置settings:
<settings>
<!-- 设置驼峰属性 -->
<setting name="mapUnderscoreToCamelCase" value="true"/>
<!-- 配置懒加载-->
<setting name="lazyLoadingEnabled" value="true"/>
<setting name="aggressiveLazyLoading" value="false"/>
<!-- 其他配置略 -->
</settings>
个人csdn博客网址:https://blog.csdn.net/shaoming314
个人博客网址:www.shaoming.club
个人gitee地址:https://gitee.com/shao_ming314/note