1、mapper namespace 必须是个mapper接口 2、查mybatis-config.xml中mappers中是否添加了相关路径 转载于:https://www.cnblogs.com/kingofjava/p/10662168.html