今天在研究mybatis懒加载的时候报错:Cannot enable lazy loading because CGLIB is not available. Add CGLIB to your classpath.
报错信息显示缺少CGLIB包。pom文件中引入:
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>3.2.5</version>
</dependency>