- add
<bean class="xxx.ApplicationContextHolder"/>
to declare this bean - add
<plugins> <plugin interceptor="xxx.interceptor.MybatisEnhanceInterceptor"/> </plugins>
to mybatis config file to use the plugin. - then you can implement
MybatisFilter
orMybatisListener
and add the bean to spring bean factory.