我执行测试 出现
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.mp.dao.UserMapper.selectAll
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.mp.dao.UserMapper.selectAll
2019-06-11
如果有同学的分页配置的页数和总记录数为0 的话可使用下面的配置
@EnableTransactionManagement
@Configuration
@MapperScan("Mapper包名")
public class MyBatisPlusConfig {
@Bean
public PaginationInterceptor paginationInterceptor() {
return new PaginationInterceptor();
}
}
当然Mapper的位置要根据你的项目中实际的位置做修改
@EnableTransactionManagement
@Configuration
@MapperScan("Mapper包名")
public class MyBatisPlusConfig {
@Bean
public PaginationInterceptor paginationInterceptor() {
return new PaginationInterceptor();
}
}
当然Mapper的位置要根据你的项目中实际的位置做修改