我用的mybatis版本2.x依赖,然后是用mybatisX插件生成3.x版本(mybatis plus)的代码,报错:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.rs.mapper.EmpMapper.getEmp
只要在pom.xml更换mybatis plus一来就好了:
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.2</version>
</dependency>