報錯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檔案
如果這篇文章能幫到你,不妨讓我知道一下吧~
相關文章
- MybatisPlus自帶方法報錯BindingException: Invalid bound statement (not found)MyBatisException
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)ApacheBATException
- IDEA+Maven:invalid bound statement (not found)解決辦法IdeaMaven
- 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
- mybatis配置時出現org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)MyBatisApacheException
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): yycg.business.dao.mApacheBATException
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)的問題處理方式之一ApacheBATException
- found an invalid color
- 解決org.apache.ibatis.binding.BindingException: Invalid boundApacheBATException
- React報錯之Element type is invalidReact
- gorm忽略報錯: record not foundGoORM
- 使用yum報錯Your license is invalid.
- 【linux報錯】-bash: xhost: command not foundLinux
- 使用URLClassLoader報錯not class found exceptionException
- python: invalid value encountered in divide以及invalid value encountered in double_scalars報錯PythonIDE
- Django報錯ValueError: invalid literal for int() with base 10:DjangoError
- 【maven】Maven報錯 zip END header not foundMavenHeader
- python virtualenv報錯-bash: virtualenv: command not foundPython
- `jsonb` 報錯 `invalid input syntax for type timestamp with time zone ““JSON
- Maven專案報錯invalid LOC header (bad signature)MavenHeader
- Lumen 報錯 : Class 'League\Flysystem\Adapter\Local' not foundAPT
- Mac之telnet報錯-bash: telnet: command not foundMac
- React Native 報錯 'config.h' file not foundReact Native
- 設定Ruby報錯bad response Not Found 404
- Elasticsearch 6 建立索引報錯 invalid_index_name_exception Invalid index name [testDemo], must be lowercaseElasticsearch索引IndexException
- 微信公眾號 報 An invalid XML character (Unicode: 0x1a) was found in the CDATA sectioXMLUnicode
- kafka報錯:InvalidReceiveException: Invalid receive (size = 1195725856 larger than 104857600)KafkaException
- Mingw GCC 編譯OpenCV報錯: Project files may be invalidGC編譯OpenCVProject
- An invalid XML character (Unicode: 0x10) was found in the value of attributeXMLUnicode
- go tool compile 報錯 could not import sync (file not found)GoCompileImport
- cgo: C compiler "gcc" not found 報錯安裝gccGoCompileGC
- vue中報錯:[vuex] module namespace not found in mapActions(): comment/Vuenamespace
- sourcetree github clone 報錯 hg clone fails with “repository not found“GithubAI
- AS執行main()方法報錯:SourceSet with name ‘main‘ not foundAI
- 執行npm run dev 後報錯 Mix: not foundNPMdev
- npm install報錯, npm ERR! code MODULE_NOT_FOUNDNPM