You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
541 B
Java
22 lines
541 B
Java
5 years ago
|
package com.jingcheng.template.conf;
|
||
|
|
||
|
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
|
||
|
import org.springframework.context.annotation.Bean;
|
||
|
import org.springframework.context.annotation.Configuration;
|
||
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||
|
|
||
|
|
||
|
@EnableTransactionManagement
|
||
|
@Configuration
|
||
|
public class MybatisPlusConfig {
|
||
|
|
||
|
/**
|
||
|
* 分页插件
|
||
|
*/
|
||
|
@Bean
|
||
|
public PaginationInterceptor paginationInterceptor() {
|
||
|
return new PaginationInterceptor();
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|