Open rengang66 opened 2 years ago
<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>``
It would be helpful if you can provide a simple example or test for using plugins. I think it should work in JVM mode but maybe need some tricks to work in Native mode.
<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>``
Have you achieved it? How should it be implemented?
I'm not very sure that <plugins>
is supported in mybatis. If it does, I think we need a test to verify if it works.
<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>``
Have you achieved it? How should it be implemented?
if you want use PageHelper you can see this link: https://github.com/quarkiverse/quarkus-mybatis/issues/166
I see but it looks like with mybatis-plus
but not mybatis
?
I see but it looks like with
mybatis-plus
but notmybatis
?
you can use it in the same way.
for example ,my mybatis-config.xml has content:
In MyBatis extension ,The plugin needs to be processed in the method setupconfiguration in the MyBatisProcessor Class.