项目:springboot+mybatis-plus
报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
解决:启动类上加@MapperScan("com.*.*.mapper.**") 或@MapperScan("com.*.*.mapper")
或者每个mapper接口加@mapper注解
括号里要写到mapper接口所在的包。
项目:springboot+mybatis-plus
报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
解决:启动类上加@MapperScan("com.*.*.mapper.**") 或@MapperScan("com.*.*.mapper")
或者每个mapper接口加@mapper注解
括号里要写到mapper接口所在的包。