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)