场景: mybatis的mapper.xml文件里写了insert,对应的dao层里写的返回值是一个实体类
Entity insertAgentInfo(Entity entity );

处理办法:mapper文件中的update,delete,insert语句是不需要设置返回类型的,它们都是默认返回一个int ,所以把返回值类型改成 int。
int insertAgentInfo(Entity entity );

has an unsupported return type相关推荐

  1. java.util.list 报错_Java 报错 .updateValue' has an unsupported return type: interface java.util.List...

    问题描述 org.apache.ibatis.binding.BindingException: Mapper method****updateValue' has an unsupported re ...

  2. tomcat 报错 Status 500 - Mapper method ‘xxxxx‘ has an unsupported return type: class xxx

    myBatis 接口写了 insert ,对应的dao层里写的返回值是一个实体类 User add(User user); 报错 Status 500 - Mapper method 'xxxxx' ...

  3. Mapper method 'dao.xxx' has an unsupported return type

    前后端分离,前端上传数据,后台一直报这个Mapper method 'dao.xxx' has an unsupported return type错误,后来才发现是不需要返回值结果的,把返回值类型改 ...

  4. Mapper method 'comxx' has an unsupported return type

    报错场景: 在学习SpringBoot与mybatis整合的时候,对数据库的数据进行更新操作,sql执行成功,但是返回了如下的异常 org.apache.ibatis.binding.BindingE ...

  5. Mapper method 'com.XXX.dao.XXXMapper.XXX' has an unsupported return type: class XXX

    错误描述: Mapper method 'com.XXX.dao.XXXMapper.updateXXX' has an unsupported return type: class java.lan ...

  6. Mybatis报错01:Mapper method ‘com.feng.dao.UserMapper.deleteUser‘ has an unsupported return type: class

    完整报错: org.apache.ibatis.binding.BindingException: Mapper method 'com.feng.dao.UserMapper.deleteUser' ...

  7. Mapper method ‘com.LH.mapper.EmployeeMapper.insertEmployee‘ has an unsupported return type: cla 报错

    问题: Mapper method 'com.LH.mapper.EmployeeMapper.insertEmployee' has an unsupported return type: clas ...

  8. org.apache.ibatis.binding.BindingException:( Mapper method has an unsupported return type)

    一.因为是org.apache.ibatis.binding.BindingException错误,所以一直以为的原因以下几种 1.mapper接口(GoodsMapper.java)是否与mappe ...

  9. 在ssm框架中进行删除数据是报错has an unsupported return type

    项目场景: 在ssm框架中进行删除数据是报错Request processing failed; nested exception is org.apache.ibatis.binding.Bindi ...

  10. Mybatis报错:org.apache.ibatis.binding.BindingException:has an unsupported return type:

    错误代码 org.apache.ibatis.binding.BindingException: Mapper method 'com.tulun.dao.StudentMapper1.insertS ...

最新文章

  1. 营销自动化为什么能吸引企业的喜欢?它有何魅力?
  2. 第十次课:前台首页设计及显示商品信息
  3. 为什么我们要做三份 Webpack 配置文件
  4. Oracle数据库基本概念理解(1)
  5. JDK 9早期版本安装后的Windows注册表清理
  6. mysql 查看锁_SQL-mysql锁等待与死锁
  7. stl iterator_在C ++ STL中使用const_iterator访问字符列表的元素
  8. java多个条件排序_java定制化排序,多个条件排序
  9. 用户空间和内核空间是什么?
  10. php二级垂直导航栏,垂直(纵向)二级导航菜单
  11. Java扫雷游戏的设计与实现毕业设计论文
  12. 在Linux中使用飞信发送手机短信
  13. 应届生应聘软件开发岗位推荐书籍
  14. AHRS和IMU的区别
  15. R语言计算相关性和p-values
  16. 一起Talk IOS吧(第八回 OC中复合类型的代码演示)
  17. 电脑启动过程(超详细过程)
  18. 在WindowsServer2008中搭建AD域并将Win7加入到域中并设置Win7的桌面壁纸
  19. NLP学习—16.对话系统及信息检索技术
  20. unity spine动画播放隐藏后马上显示播放抽搐的bug

热门文章

  1. FPGA循环点亮流水灯
  2. rust启动错误ple_Rust 错误处理
  3. 手机厂商为什么都开始造电视了?
  4. 校园兼职平台项目总结
  5. [Android Security] 静态分析Android程序——smali文件解析
  6. ZigBee Dotdot
  7. docker 启动失败:specified both as a flag and in the configuration fir/daemon.json
  8. mysql dos 怎样卸载_MySQL安装与卸载
  9. Blastp/PSI-BLAST/PHI-BLAST
  10. html调用打印机,[Javascript]网页调用打印机