springboot整合mybatis和pageHelper分页插件
2019-01-13 17:56
603 查看
1.导入依赖
<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.1.2</version> </dependency> <!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter --> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.3.2</version> </dependency>
2.配置
mybatis: ##全局配置文件的位置 config-location: classpath: mybatis/mybatis-config.xml ##mapper映射文件 mapper-locations: classpath: mapper/*.xml
3.包扫描
@MapperScan
相关文章推荐
- springboot整合mybatis之分页插件pagehelper
- SpringBoot_thymeleaf_mybatis和PageHelper分页插件整合
- spring boot 整合mybatis 分页插件pagehelper
- Mybatis分页插件 - PageHelper与springBoot的整合
- Spring Boot整合Mybatis-Plus和PageHelper分页插件,附项目源码
- springboot+Mybatis整合pageHelper分页插件
- SpringBoot整合系列-PageHelper分页插件
- springboot整合pagehelper分页插件
- spring-boot 集成mybatis的分页插件PageHelper和Generator (番外)
- spring-boot 集成mybatis的分页插件PageHelper和Generator
- Spring Boot 配置 Mybatis 通用 Mapper 和 pagehelper 分页插件
- springboot如何集成mybatis的pagehelper分页插件
- SpringBoot集成MyBatis的分页插件PageHelper(回头草)
- springboot+Mybatis的分页插件pageHelper
- Spring Boot系列教程十一: Mybatis使用分页插件PageHelper
- spring-boot 集成mybatis的分页插件PageHelper版本问题
- SpringBoot集成MyBatis的分页插件PageHelper(回头草)
- Spring Boot系列六 Spring boot集成mybatis、分页插件pagehelper
- 记录问题:springboot中使用Mybatis-pagehelper分页插件遇到的版本兼容问题
- SpringBoot Mybatis PageHelper分页插件的两种用法(二)