错误:
org.apache.ibatis.binding.BindingException: Mapper method 'com.four.numfour.dao.PtableMapper.updatTbaleImage' has an unsupported return type: class com.four.numfour.pojo.Ptable
at org.apache.ibatis.binding.MapperMethod.rowCountResult(MapperMethod.java:118)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:67)
at
问题处理:
UPDATE 语句和INSERT INTO 语句 默认都返回的是 int类型 所java代码中接收的都是int类型 controller 需要改成Integer这样会减少一些意外的错误
使用工具提交后
类型修改后数据更新正确并不会出现 has an unsupported return type这样的问题