一个查询错误:A query was run and no Result Maps were found for the Mapped Statement ‘com.kuang.dao.BookMap
生活随笔
收集整理的這篇文章主要介紹了
一个查询错误:A query was run and no Result Maps were found for the Mapped Statement ‘com.kuang.dao.BookMap
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
錯誤代碼
<select id="queryAllBook" parameterType="Books" >select * from ssmbuild.books</select>在查詢語句中不可以缺失兩個類型 ,parameterType和 resultType ,他們兩個配置都一樣,
但是他們都是mybatis 必須返回的類型
正確代碼
<select id="queryAllBook" parameterType="Books" resultType="Books">select * from ssmbuild.books</select>總結
以上是生活随笔為你收集整理的一个查询错误:A query was run and no Result Maps were found for the Mapped Statement ‘com.kuang.dao.BookMap的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 嗨,又有人轻生
- 下一篇: HTML5+CSS3小实例:DNA双螺旋