com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.plugin.Interceptor


在MyBatis的配置文件中修改對pageHelper的配置
修改前

<plugins>
    <plugin interceptor="com.github.pagehelper.PageHelper">
        <!-- 配置數據庫的方言 -->
        <!-- 設置數據庫類型 Oracle,Mysql,MariaDB,SQLite,Hsqldb,PostgreSQL六種數據庫-->        
        <property name="dialect" value="mysql"/>
    </plugin>
</plugins>

 

修改后

<plugins>
    <plugin interceptor="com.github.pagehelper.PageInterceptor">
        <!-- 配置數據庫的方言 -->
        <!-- 設置數據庫類型 Oracle,Mysql,MariaDB,SQLite,Hsqldb,PostgreSQL六種數據庫-->        
        <!-- <property name="dialect" value="mysql"/> -->
    </plugin>
</plugins>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM