You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
713 B
24 lines
713 B
package com.ccic.safeliab.config; |
|
|
|
import com.baomidou.mybatisplus.annotation.DbType; |
|
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; |
|
import org.mybatis.spring.annotation.MapperScan; |
|
import org.springframework.context.annotation.Bean; |
|
import org.springframework.context.annotation.Configuration; |
|
|
|
//@EnableTransactionManagement |
|
@Configuration |
|
@MapperScan("com.cs.dao") |
|
public class MabatisPlusConfig { |
|
|
|
/** |
|
* 分页插件 |
|
*/ |
|
@Bean |
|
public PaginationInterceptor paginationInterceptor() { |
|
|
|
return new PaginationInterceptor().setDialectType(DbType.POSTGRE_SQL.getDb()); |
|
// return new PaginationInterceptor().setDialectType(DbType.MYSQL.getDb()); |
|
} |
|
|
|
}
|
|
|