org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.apache.

這是我學習mybatis遇到的第一個異常: 異常類型爲ibatis中持久性異常,具體就是說不完整的元素異常,無法在domain中找到結果集; 查看mapper.xml發現resultType寫成resultMap了,導致異常發生。 將resultMap改成resultType,問題解決 在使用mybatis進行數據庫連接操作時對於SQL語句返回結果的處理通常有兩種方式,一種就是resultType
相關文章
相關標籤/搜索