自定義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
2022-12-01
我也是這樣,不知道原因
2022-07-22
請問您解決了嗎,我也探索了好久,感覺沒什么問題啊