報錯Invalid bound statement (not found): com.thxy.mapper.RoleMapper.insertRle
寫專案練手的時候遇到這個錯誤,經過查閱明白了報錯原因,記錄一下
報錯原因
包掃描不到
排錯
- 如果是id檢查pom.xml檔案是否加了這段程式碼
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
在build中配置resources,來防止我們資源匯出失敗的問題
- 檢查mapper.xml裡的欄位名和你介面的方法名是否一致
- 檢視mybatis-config.xml配置檔案是否註冊了mapper檔案
如果這篇文章能幫到你,不妨讓我知道一下吧~
相關文章
- mybatis 報錯: Invalid bound statement (not found)MyBatis
- MyBatis 錯誤:Invalid bound statement (not found)MyBatis
- Invalid bound statement (not found)錯誤解決
- mybatis3:Invalid bound statement (not found)MyBatisS3
- MybatisPlus自帶方法報錯BindingException: Invalid bound statement (not found)MyBatisException
- IDEA+Maven:invalid bound statement (not found)解決辦法IdeaMaven
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)ApacheBATException
- MyBatis繫結錯誤:org.apache.ibatis.binding.BindingException:Invalid bound statement (not found)MyBatisApacheException
- IDEA+Maven+Springboot:invalid bound statement (not found) 解決辦法IdeaMavenSpring Boot
- mybatis-plus自定義mapper報org.apache.ibatis.binding.BindingException: Invalid bound statement(not found)MyBatisAPPApacheException
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): yycg.business.dao.mApacheBATException
- mybatis配置時出現org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)MyBatisApacheException
- 【spring boot Mybatis】報錯:org.apache.ibatis.binding.BindingException: Invalid bound statement (not fo...Spring BootMyBatisApacheException
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)的問題處理方式之一ApacheBATException
- 關於org.apache.ibatis.binding.BindingException: Invalid bound statement (not found),找不到mapper檔案問題解決ApacheBATExceptionAPP
- gorm忽略報錯: record not foundGoORM
- ***報錯Class 'Redis' not found in(原創)Redis
- 執行mysqlbinlog出現Found invalid event in binary log錯MySql
- iOS 上架報錯 This bundle is invalid 或 Invalid Image PathiOS
- React報錯之Element type is invalidReact
- 使用URLClassLoader報錯not class found exceptionException
- 【linux報錯】-bash: xhost: command not foundLinux
- 【maven】Maven報錯 zip END header not foundMavenHeader
- Django報錯ValueError: invalid literal for int() with base 10:DjangoError
- Java - XML字元支援報錯An invalid XML characterJavaXML字元
- oracle ORA-01722 報錯 "invalid number"Oracle
- Lumen 報錯 : Class 'League\Flysystem\Adapter\Local' not foundAPT
- 執行npm run dev 後報錯 Mix: not foundNPMdev
- 設定Ruby報錯bad response Not Found 404
- AS執行main()方法報錯:SourceSet with name ‘main‘ not foundAI
- python virtualenv報錯-bash: virtualenv: command not foundPython
- Xcode8報錯:No code signature foundXCode
- All About JAVA An invalid XML character (Unicode: 0xdd65) was found in the comment 錯誤JavaXMLUnicode
- python: invalid value encountered in divide以及invalid value encountered in double_scalars報錯PythonIDE
- 解決org.apache.ibatis.binding.BindingException: Invalid boundApacheBATException
- 微信公眾號 報 An invalid XML character (Unicode: 0x1a) was found in the CDATA sectioXMLUnicode
- An invalid XML character (Unicode: 0x18) was foundXMLUnicode
- npm install報錯, npm ERR! code MODULE_NOT_FOUNDNPM