1.訪問所有的mapper都報此錯誤,檢查 mapper.xml 中的 namespace


2.訪問mapper中的部分方法時報此錯誤,檢查xml文件中的id是否和接口中的方法名一致
3.mapper接口中的方法返回值是List<User>,而select元素沒有正確配置ResultMap,或者只配置ResultType
4.檢查application.properties配置文件是否添加以下配置信息
mybatis.mapperLocations=classpath:mapper/*Mapper.xml
mybatis.typeAliasesPackage=com.gugr.springboot.entity
