需要增加以下配置:

@Configuration(proxyBeanMethods = false)
public class MybatisAutoConfiguration {

    /**
     * 配置PaginationInterceptor,使其分页插件有效
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2021-05-13
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2023-03-21
相关资源
相似解决方案