Caused by: java.lang.ClassNotFoundException: Cannot find class: User
生活随笔
收集整理的這篇文章主要介紹了
Caused by: java.lang.ClassNotFoundException: Cannot find class: User
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
源代碼:?
<select id="selectAll" resultType="User">select user_id uid,user_name username,user_password password,user_gender gender, user_birthday birthday, user_status status from users</select>正確代碼:?
<select id="selectAll" resultType="com.bj186.crm.entity.User">select user_id uid,user_name username,user_password password,user_gender gender, user_birthday birthday, user_status status from users</select>原因分析: 這個問題的原因是在使用resultType的時候, 沒有正確的指定返回的類型
轉載于:https://www.cnblogs.com/zjulanjian/p/10968608.html
總結
以上是生活随笔為你收集整理的Caused by: java.lang.ClassNotFoundException: Cannot find class: User的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ArcGis dbf读写——挂接Exce
- 下一篇: 22计算机408考研—数据结构—排序(详