java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
異常的出現
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.xxxx.order.dao.task.OrderMapper.findAddressOrderBlackList
### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.xxxx.order.dao.task.OrderMapper.findAddressOrderBlackList
原因
MappedStatement集合裡面不包含這個方法,MyBatis會根據xml檔案生成MappedStatement放到Configuretion中,如果找不到,有可能是對應的xml找不到,或者xml中沒有id為findAddressOrderBlackList語句。
探索
sch:在很久之前頁遇到過同樣的問題,原因是xml檔案的namespace不對,也導致從MappedStatement的集合中查詢不到。最近在閱讀MyBatis原始碼,所以一看就知道是什麼原因導致的了。
上次的連結:
http://www.jianshu.com/p/322a2c897352
相關文章
- Maven建立SSM專案 啟動時報錯Mapped Statements collection does not contain value for xxxMavenSSMAPPAI
- 解決mybatis出現Mapped Statements collection already contains value for問題MyBatisAPPAI
- editor does not contain a main type Maven專案AIMaven
- java.lang.IllegalArgumentException: Path index does not start with a "/" charactJavaExceptionIndex
- Property [title] does not exist on this collection instance
- 9207 Patchset does not contain OraCM (Oracle Cluster Manager) for RACAIACMOracle
- Dynamics CRM Plug-in assembly does not contain the required types or assembly content cannot be...AIUI
- mysql 5.7.21 CMake Error: The source directory "/data/server/mysql" does not appear to contain CMakMySqlErrorServerAPPAI
- java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy7 implemJavaException
- Eclipse中執行出現selection does not contain a main type錯誤EclipseAI
- django 報錯:ValueError: The database backend does not accept 0 as a value for AutoField.DjangoErrorDatabase
- value xxx for the flexfield segment customer:does not exist in the value set xxxxFlex
- Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection alreadyErrorAPPXMLJavaException
- 解決java.lang.IllegalArgumentException: 'Content-Type' cannot contain wildcard type '*'異常(真實有效)...JavaExceptionAI
- Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of ex...UIAIAPPiPhone
- Load balancer does not contain an instance for the service service-B [503] during [POST] 問題解決AI
- According to TLD or attribute directive in tag file, attribute value does not accept any expressionExpress
- 工程中報錯或者警告(持續更新)(例如:does not contain bitcode. You must rebuild it with bitcode enabled )AIRebuild
- Parallel Execution of SQL StatementsParallelSQL
- streamlit run執行報錯,Invalid value: File does not exist: XXX.py
- NHibernate提示表is not mappedAPP
- Oracle Text SQL Statements and OperatorsOracleSQL
- mabatis報錯 Result Maps collection already contains value for gamedataserver.dao.one.ChargeRecordMapper.BaseResultMapBATAIGAMServerAPP
- Laravel CollectionLaravel
- Collection介面
- Result Maps collection already contains value for xxx.xxx.dao.BaseResultMap錯誤AI
- [CareerCup] 4.8 Contain Tree 包含樹AI
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions報錯解決辦法Express
- 使用JSTL庫的時候: According to TLD or attribute directive in tag file, attribute value does not accept anyJS
- java.lang.IllegalArgumentException: Wrong state classsJavaException
- doesn't contain a valid partition tableAI
- Java集合-CollectionJava
- backup site collection
- Metric Collection ErrorsError
- [Javascript] garbage collectionJavaScript
- PostgreSQL DBA(63) - Extension(pg_stat_statements)SQL
- DML Locks Automatically Acquired for DML Statements (349)UI
- allowedOrigins cannot contain the gateway 報錯AIGateway