mybatis返回list时resultType写Integer

查询出的结果可能有好多条记录,返回类型即是list。但resultType还是写成resultType="user"(user为集合list中的实体类),而不是写成resultType="java.util.List"

mybatis返回list<Integer>时resultType写java.lang.Integer而不是java.util.List

如果写成java.util.List时会报错,error querying database.the error occurred while handling results.


版权声明:本文为qq_34412985原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。