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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM