ExecutorException: A query was run and no Result Maps were found for the Mapped Statement ‘org.ali.dao.IAdministratorsDao.findCustomerForLogin’. It’s likely that neither a Result Type nor a Result Map was specified.
错误原因:
Mapper映射文件中写的sql语句没有声明resultMap和resultType
解决方法:
回到mybatis的mapper映射文件,查看sql语句的标签上是否有缺少resultMap和resultType,补全则完成修改。