报错信息显示,Mapper方法'box.dao.UserInfoMapper.update'的返回类型不受支持,返回类型为box.entity.Userinfo。

根据报错信息中的调用栈可以看出,错误发生在test1.java的testUpdate方法中,该方法调用了Mapper方法update。

根据MyBatis的规范,Mapper接口的方法可以有以下几种返回类型:void、int、long、boolean或者Integer、Long、Boolean对象。而报错信息中的返回类型为box.entity.Userinfo,不属于以上规定的类型。

要解决这个问题,需要将Mapper方法'box.dao.UserInfoMapper.update'的返回类型修改为符合MyBatis规范的返回类型,如void或者int,或者将调用该方法的代码进行相应的调整。

请分析以下报错orgapacheibatisbindingBindingException Mapper method boxdaoUserInfoMapperupdate has an unsupported return type class boxentityUserinfo	at orgapacheibatisbindingMapperMethodrowCountResultMapperM

原文地址: http://www.cveoy.top/t/topic/hZM4 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录