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