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

Modify the configuration of pageHelper in MyBatis configuration file
before modifying

<plugins> 
    <plugin Interceptor = " com.github.pagehelper.PageHelper " > 
        <! - Dialect configuration database -> 
        <! - Set database type Oracle, Mysql, MariaDB, SQLite, Hsqldb, PostgreSQL six kinds of databases - ->         
        <Property name = " dialect " value = " MySQL " /> 
    </ plugin> 
</ plugins>

 

Modified

<plugins> 
    <plugin Interceptor = " com.github.pagehelper.PageInterceptor " > 
        <! - Dialect configuration database -> 
        <! - Set database type Oracle, Mysql, MariaDB, SQLite, Hsqldb, PostgreSQL six kinds of databases - ->         
        <-! <Property name = " dialect " value = " MySQL " /> -> 
    </ plugin> 
</ plugins>

 

Guess you like

Origin www.cnblogs.com/wanerhu/p/11931439.html