1. 程式人生 > >java.lang.IllegalStateException: Cannot define both nestedQueryId and nestedResultMapId

java.lang.IllegalStateException: Cannot define both nestedQueryId and nestedResultMapId

collect text idt sdn 標簽 tex edr map lec

技術分享圖片

出了這個錯,那肯定是Mybatis嵌套查詢的報的錯。

解決:

技術分享圖片

在你的collection標簽裏把resultMap幹掉就可以了!

java.lang.IllegalStateException: Cannot define both nestedQueryId and nestedResultMapId