mybatis java.lang.UnsupportedOperationException


mybatis 的mapper配置的select查詢語句,報java.lang.UnsupportedOperationException

內容如下:

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.lang.UnsupportedOperationException
### The error may exist in file [D:\java\tomcat\apache-tomcat-7.0.68\webapps\ROOT\WEB-INF\classes\mapper\business\TProProductMapper.xml]
### The error may involve com.lincomb.manager.business.mapper.TProProductMapper.exprotceneProduct
### The error occurred while handling results
### SQL: SELECT 【 中間省略若干sql 】 DESC
### Cause: java.lang.UnsupportedOperationException

這個是由於mapper.xml 的select配置的

把resultType改為List集合的對象就好了

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM