parent
033b5dabba
commit
c2536a297d
4 changed files with 15 additions and 22 deletions
@ -0,0 +1,13 @@ |
||||
package com.daqing.financial.crms.config; |
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; |
||||
import org.springframework.context.annotation.Bean; |
||||
import org.springframework.context.annotation.Configuration; |
||||
|
||||
@Configuration |
||||
public class IPageConfig { |
||||
@Bean |
||||
public PaginationInterceptor paginationInterceptor() { |
||||
return new PaginationInterceptor(); |
||||
} |
||||
} |
@ -1,20 +0,0 @@ |
||||
package com.daqing.framework.config; |
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; |
||||
import org.springframework.context.annotation.Bean; |
||||
import org.springframework.context.annotation.Configuration; |
||||
|
||||
/** |
||||
* @Author: gongsj. |
||||
* @Description: 分页拦截器注入到spring中 |
||||
* @Date:Created in 2020/09/09 11:33. |
||||
* @Modified By: |
||||
*/ |
||||
@Configuration |
||||
public class MybatisPlusConfig { |
||||
public PaginationInterceptor paginationInterceptor() { |
||||
PaginationInterceptor page = new PaginationInterceptor(); |
||||
page.setDialectType("mysql"); |
||||
return page; |
||||
} |
||||
} |
Loading…
Reference in new issue