for example ,my mybatis-config.xml has content: <plugins> <plugin interceptor="com.github.pagehelper.PageInterceptor"> <property name="helperDialect" value="mysql" /> <property name="supportMethodsArguments" value="true" /> <property name="params" value="count=countSql" /> </plugin> </plugins> In MyBatis extension ,The plugin needs to be processed in the method setupconfiguration in the MyBatisProcessor Class.