在mybatis-config.xml中没有配置映射文件 <mappers > <!-- xxSqlMap文件要在这里配置 --> <mapper resource="manageSqlMap.xml"/> </mappers>