count is ambiguous in Mapped Statements collection (try using the full name including the namespa...

各位老鐵們: 遇到這種問題怎麼辦?java

{"callbackType":"","forwardUrl":"","message":":錯誤信息:底層異常,錯誤信息:數據庫底層異常,錯誤信息:數據操做失敗,錯誤信息:\r\n### Error querying database. Cause: java.lang.IllegalArgumentException: count is ambiguous in Mapped Statements collection (try using the full name including the namespace, or rename one of the entries)\r\n### Cause: java.lang.IllegalArgumentException: count is ambiguous in Mapped Statements collection (try using the full name including the namespace, or rename one of the entries)\ncom.etoak.demo.dao.TbTstCustomerDemoDao.findPage()[74行]sql

\r\ncom.etoak.demo.manager.TbTstCustomerDemoManager.findPage()[57行]
\r\ncom.etoak.demo.service.impl.CustomerdemoServiceImpl.findPage()[59行]
\r\ncom.etoak.demo.service.impl.CustomerdemoServiceImpl$FastClassByCGLIB$b96bb077.invoke()[-1行]
\r\ncom.etoak.demo.service.impl.CustomerdemoServiceImpl$EnhancerByCGLIB$66273b12.findPage()[-1行]
\r\ncom.etoak.demo.action.CustomerdemoAction.list()[91行]
\r\n\ncom.etoak.demo.manager.TbTstCustomerDemoManager.findPage()[60行]
\r\ncom.etoak.demo.service.impl.CustomerdemoServiceImpl.findPage()[59行]
\r\ncom.etoak.demo.service.impl.CustomerdemoServiceImpl$FastClassByCGLIB$b96bb077.invoke()[-1行]
\r\ncom.etoak.demo.service.impl.CustomerdemoServiceImpl$EnhancerByCGLIB$66273b12.findPage()[-1行]
\r\ncom.etoak.demo.action.CustomerdemoAction.list()[91行]數據庫

\r\n\ncom.etoak.demo.service.impl.CustomerdemoServiceImpl.findPage()[62行]
\r\ncom.etoak.demo.service.impl.CustomerdemoServiceImpl$FastClassByCGLIB$b96bb077.invoke()[-1行]
\r\ncom.etoak.demo.service.impl.CustomerdemoServiceImpl$EnhancerByCGLIB$66273b12.findPage()[-1行]
\r\ncom.etoak.demo.action.CustomerdemoAction.list()[91行]
\r\n\ncom.etoak.demo.action.CustomerdemoAction.list()[98行]
\r\n","navTabId":"020110","object":null,"pager":null,"statusCode":"300","tableId":"","totalSize":0}」
- - - - - - - - - - - - - - -mybatis

通常的你們第一時間想到的估計是app

是否是重複了,可是檢查了一遍又一遍, count 不是一個sql的 id 啊。 這怎麼會報這個錯誤呢,就開始糾結。spa

還有一種慶魁昂可能你沒有考慮到:xml

Mapper.xml沒有配置,或者命名空間錯誤,系統找不到相關的映射。io

或者你的mapper文件沒有在mybatis的中得配置文件 的mapper 標籤中得resource 路徑中沒有。 制定的路徑掃描不到。table

相關文章
相關標籤/搜索