|
|
|
@ -18,10 +18,11 @@ public class MybatisPlusConfig {
|
|
|
|
|
*
|
|
|
|
|
* @return MybatisPlusInterceptor
|
|
|
|
|
*/
|
|
|
|
|
private static final PaginationInnerInterceptor paginationInterceptor = new PaginationInnerInterceptor();
|
|
|
|
|
@Bean
|
|
|
|
|
public MybatisPlusInterceptor mybatisPlusInterceptor() {
|
|
|
|
|
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
|
|
|
|
|
interceptor.addInnerInterceptor(new PaginationInnerInterceptor());
|
|
|
|
|
interceptor.addInnerInterceptor(paginationInterceptor);
|
|
|
|
|
return interceptor;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|