@Result中 many=@Many(select = "selectByPid"报错

@Result中 many=@Many(select = "selectByPid"报错

,报错信息是Multiple markers at this line - Many cannot be resolved to a type - The value for annotation attribute Result.many must be  some @org.apache.ibatis.annotations.Many annotationhttp://img1.sycdn.imooc.com//climg/5d1b8f010001450e12470786.jpghttp://img1.sycdn.imooc.com//climg/5d1b8f070001f9ea06960798.jpg

正在回答

登陆购买课程后可参与讨论,去登陆

1回答

同学你好。

报错信息为:

- Many cannot be resolved to a type 

 - The value for annotation attribute Result.many must be some @org.apache.ibatis.annotations.Many annotation

翻译一下可得:

 - Many 无法被解析

 - 注释“Result.Many”必须是基于 @org.apache.ibatis.annotations.Many的

所以同学可以检查一下自己是否正确引入了Many标签:

http://img1.sycdn.imooc.com//climg/5d1c1c150001d35607020272.jpg

如果解答了同学的疑问,望采纳~

祝学习愉快~


问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师