ExecutorException: A query was run and no Result Maps were found for the Mapped Statement ‘com.win.mall.dao.CartMapper.test’. It’s likely that neither a Result Type nor a Result Map was specified.

ExecutorException: A query was run and no Result Maps were found for the Mapped Statement ‘com.win.mall.dao.CartMapper.test’. It’s likely that neither a Result Type nor a Result Map was specified.

原因:mybatis没有resultMap报错

  • 在mapper文件的 select 标签中没有指定 resultType 或者 resultMap

猜你喜欢

转载自www.cnblogs.com/renxiuxing/p/10334066.html