自定义sql的时候 mapper下的xml中 select id和mapper下接口public 的方法名一致,但是提示报错
自定义sql的时候 mapper下的xml中 select id和mapper下接口public 的方法名一致,但是提示报错
自己解决几种方案都不行:
mapper.xml中的namespace和实际的mapper文件一致
mapper接口中的方法名和mapper.xml中的id标签一致
Mapper.xml已经构建进去
mybatis-spring-boot-starter version 2.2.2 mapper-spring-boot-starter version 2.1.5
报错:
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.tanwei.mapper.MapperLearnMapperCustom.getMapperLearnCustomSql] with root cause