Cannot enable lazy loading because CGLIB is not available. Add CGLIB to your classpath.

使用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>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章