eclipse中的mybatis框架里mapper配置文件中的懒加载fetchType不可用

eclipse中的mybatis框架里mapper配置文件中的懒加载fetchType属性不可用,一直报错, 出现出错

org.apache.ibatis.exceptions.PersistenceException:
Error querying database. Cause: org.apache.ibatis.executor.ExecutorException: Error creating lazy proxy. Cause: java.lang.NullPointerException
The error may exist in Dao/CategoryMapper.xml
The error may involve Dao.DmCategoryMapper.selectAll
The error occurred while handling results
SQL: select * from dm_category
Cause: org.apache.ibatis.executor.ExecutorException: Error creating lazy proxy. Cause: java.lang.NullPointerException

解决方法就是下载一个高版本的mybaits即可
从maven中央库( mvnrepository.com/)中找到了mybatis选择新版本

原先版本eclipse中的mybatis框架里mapper配置文件中的懒加载fetchType不可用
更改后
eclipse中的mybatis框架里mapper配置文件中的懒加载fetchType不可用