您好,登錄后才能下訂單哦!
Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.shadow.foretaste.UserInfoDao.getPhoneNum'. It's likely that neither a Result Type nor a Result Map was specified.
導致這個錯誤的原因是:
mapper.xml中沒有指定返回值類型
<select id="getPhoneNum" > select phone_num from user_info where id = #{id} </select>
修改后:
<select id="getPhoneNum" resultType="String"> select phone_num from user_info where id = #{id} </select>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。