1、检查dao 层定义的Mapper,定义的是class还是Interface; 2、检查x x xmapper.xml命名空间是否与dao层路径一致 3、检查mybatic-config.xml是否配置对应的mapper