mybatis使用association出现的空指针异常

org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: java.lang.NullPointerException

The error may exist in com/gaipian/dao/IAccoutDao.xml

The error may involve com.gaipian.dao.IAccoutDao.findAll

The error occurred while handling results

SQL: select u.*,a.ID as AID,a.UID,a.MONEY from account a,user u where a.UID = u.id

Cause: java.lang.NullPointerException

解决方式:注意在association标签中写javaType标签

你可能感兴趣的:(异常,mybatis)