1. 程式人生 > >java.lang.ClassCastException: xxx.bean.XXX cannot be cast to xxx.bean.YYY

java.lang.ClassCastException: xxx.bean.XXX cannot be cast to xxx.bean.YYY

java.lang.ClassCastException: com.hahah.atcrowdfunding.bean.User cannot be cast to com.hahah.atcrowdfunding.bean.Role

result寫錯了,應該是resultType,但是複製貼上之前寫的(resultMap),沒有把result改掉,改成resultType

以後一定要牢記,更改result