import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
@MapperScan("com.itheima.admin.mapper")
public class AdminApplication {
public static void main(String[] args) {
SpringApplication.run(AdminApplication.class, args);
}
//分页插件
@Bean
public PaginationInterceptor paginationInterceptor() {
return new PaginationInterceptor();
}
}
08-17
450
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-25
701
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-26
743
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-26
3220
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)