错误原因:1.没加mapper注解2.user-mapper.xml的namespace是否正确3.resultType有误没有找到指定Bean,必须是全路径4.Bean中的属性与mysql表里的字段不对应5.mybatis依赖包版本问题