MyEclipse使用MyBatisGenerator遇到的问题

org.apache.ibatis.binding.BindingException: Type interface am.dao.ProductMapper is not known to the MapperRegistry.

mybatis-config.xml里mapper路径没有配置好


org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'pdesc' from result set. Cause: java.sql.SQLDataException: Cannot determine value type from string

手动创建了构造函数后,实体类缺少无参构造函数

原文地址:https://www.cnblogs.com/ahmao/p/13217514.html