昨天在Maven管理的项目中集成PageHelper的时候总是没有成功。我采用的是Spring的集成方式。
因为我使用的是PageHelper5.0,如果按照这样的配置的话,Log就会报出如下异常:
Error creating bean with name ‘sqlSessionFactory’ defined in class path resource
[META-INF/spring/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException:
Failed to convert property value of type ‘java.lang.Object[]’ to required type ‘org.apache.ibatis.plugin.Interceptor[]’ for property ‘plugins’;
nested exception is java.lang.IllegalStateException:
Cannot convert value of type ‘com.github.pagehelper.PageHelper’ to required type ‘org.apache.ibatis.plugin.Interceptor’ for property ‘plugins[0]’: no matching editors or conversion s
Mybatis物理分页插件PageHelper 5.0
最新推荐文章于 2024-02-05 12:34:56 发布