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>
相關文章
- Invalid bound statement (not found)錯誤解決
- IDEA+Maven+Springboot:invalid bound statement (not found) 解決辦法IdeaMavenSpring Boot
- mybatis3:Invalid bound statement (not found)MyBatisS3
- MyBatis 錯誤:Invalid bound statement (not found)MyBatis
- mybatis 報錯: Invalid bound statement (not found)MyBatis
- MybatisPlus自帶方法報錯BindingException: Invalid bound statement (not found)MyBatisException
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)ApacheBATException
- 報錯Invalid bound statement (not found): com.thxy.mapper.RoleMapper.insertRleAPP
- 關於org.apache.ibatis.binding.BindingException: Invalid bound statement (not found),找不到mapper檔案問題解決ApacheBATExceptionAPP
- 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配置時出現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
- zabbix_get :command not found 解決辦法
- -bash: XXX: command not found解決辦法
- IAR中出現the order of volatile accesses is undefined in this statement的解決辦法Undefined
- 解決org.apache.ibatis.binding.BindingException: Invalid boundApacheBATException
- “command-not-found has crashed” 解決辦法 (*unsolved)
- libgomp.so.1: version `GOMP_4.0' not found 解決辦法Go
- npm報錯"A complete log of this run can be found in:"的解決辦法NPM
- 【spring boot Mybatis】報錯:org.apache.ibatis.binding.BindingException: Invalid bound statement (not fo...Spring BootMyBatisApacheException
- 分模組的maven專案除錯時報Source not found的解決辦法Maven除錯
- 編譯安裝php的openssl元件時遇到 libssl not found解決辦法編譯PHP元件
- 編譯opencv 提示opencv_sfm links to target absl::log but not found解決辦法編譯OpenCV
- github慢解決辦法Github
- Grub Rescue解決辦法
- /dev/null解決辦法devNull
- MSBuild Tools解決辦法UI
- 檔案無法粉碎解決辦法
- OpenStack 的NAT解決辦法
- android ExceptionInInitializerError解決辦法AndroidExceptionError
- Could not find *.apk!解決辦法APK
- man出錯解決辦法
- ARP病毒解決辦法
- 公寓噪音的解決辦法
- zblog升級報錯“Invalid argument supplied for foreach”或者“unserialize(): Error at offset”的解決辦法Error
- SSH 連線卡頓解決辦法