原因:org.apache.ibatis.executor。ExecutorException:查询运行,未发现结果地图映射语句的“com.shadow.foretaste.UserInfoDao.getPhoneNum”只很有可能结果类型和指定结果地图。
导致这个错误的原因是:
映射器。xml中没有指定返回值类型
& lt; select id=癵etPhoneNum”,在 ,,,,,,,select phone_num 得到user_info where id =, # {id} & lt;/select>
修改后:
& lt; select id=癵etPhoneNum”, resultType=白址北? ,,,,,,,select phone_num ,得到user_info where id =, # {id} & lt;/select>