搭建springboot整合mybatis-plus报:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.zoro.products.mapper.ProductsDao.selectById,原因pom文件依赖引入错误
错误依赖
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.2</version>
</dependency>
解决方法:替换依赖
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.1.2</version>
</dependency>