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的时候, 没有正确的指定返回的类型