IDEA+Maven:invalid bound statement (not found)解決辦法
IDEA+Maven的SSM專案,遇到一個深坑invalid bound statement (not found),就是mapper檔案掃描不到!
各種除錯,各種找Bug,網上大多數人說是mapper配置檔案路徑問題,但我的沒錯啊,最後才發現這種說法:
原來是需要在pom.xml檔案中配置resource,不然mapper.xml檔案就會被漏掉!
pom.xml的<build>中配置了resource,bug消失了~
<!-- 如果不新增此節點mybatis的mapper.xml檔案都會被漏掉。 -->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
相關文章
- IDEA+Maven+Springboot:invalid bound statement (not found) 解決辦法IdeaMavenSpring Boot
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)ApacheBATException
- MybatisPlus自帶方法報錯BindingException: Invalid bound statement (not found)MyBatisException
- 報錯Invalid bound statement (not found): com.thxy.mapper.RoleMapper.insertRleAPP
- 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
- MyBatis繫結錯誤:org.apache.ibatis.binding.BindingException:Invalid bound statement (not found)MyBatisApacheException
- mybatis-plus自定義mapper報org.apache.ibatis.binding.BindingException: Invalid bound statement(not found)MyBatisAPPApacheException
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)的問題處理方式之一ApacheBATException
- 解決org.apache.ibatis.binding.BindingException: Invalid boundApacheBATException
- -bash: XXX: command not found解決辦法
- zabbix_get :command not found 解決辦法
- “command-not-found has crashed” 解決辦法 (*unsolved)
- IAR中出現the order of volatile accesses is undefined in this statement的解決辦法Undefined
- found an invalid color
- npm報錯"A complete log of this run can be found in:"的解決辦法NPM
- 編譯opencv 提示opencv_sfm links to target absl::log but not found解決辦法編譯OpenCV
- zblog升級報錯“Invalid argument supplied for foreach”或者“unserialize(): Error at offset”的解決辦法Error
- ZBlog升級1.7報錯“Invalid argument supplied for foreach”或者“unserialize(): Error at offset”的解決辦法Error
- 已解決:Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 問題
- github慢解決辦法Github
- Namespoace Terminating 解決辦法
- 檔案無法粉碎解決辦法
- 公寓噪音的解決辦法
- height:100%失效解決辦法
- 記vscode無法啟動解決辦法VSCode
- cnpm link 報錯解決辦法NPM
- mysql事件關閉解決辦法MySql事件
- IDEA 找不到包解決辦法Idea
- 資料傾斜解決辦法
- SpringBoot 迴圈引用解決辦法Spring Boot
- VScode 更新失敗解決辦法VSCode
- npm install 失敗解決辦法NPM
- github訪問受限解決辦法Github
- 跨域問題解決辦法跨域
- SqlServer鎖表解鎖解決辦法SQLServer
- ModuleNotFoundError: No module named ‘DBUtils‘解決辦法Error
- invalid stream header: EFBFBDEF 問題解決Header