集成问题来源
问题来源
笔者近期在整合Springboot和mybatis时,一直采用的以下方式:
pom文件:
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.3</version>
</dependency>
yml文件:
mybatis:
type-aliases-package: top.powersys..*.entity
mapper-locations: classpath:top/powersys/**/**/dao/xml/*.xml
mapper接口:
@Mapper
public interface DebtMapper {
List<DebtRecordDto> getDebtByAccoutNoList( @Param("accountNo") String accountNo);
}
一直也都是没有什么问题。由于功能调试没问题了,便打算添加分页。调研了许久,在朋友的建议下决定不自己手写分页工具,直接利用Myabtis-plus进行集成。
依赖如下:
<!--mp-->
<dependency>
<groupId>com.baomidou</groupId