UserMapper is not known to the MapperRegistry.
在您的mapper.xml文件中,映射器的名称空间应该是映射器接口的路径。
例如:
<mapper namespace="com.mapper.LineMapper">
<select id="selectLine" resultType="com.jiaotong114.jiaotong.beans.Line">
select * from bus_line where id = #{id}
</select>
</mapper>
您的映射器接口应位于com.mapper软件包中,并且其名称为LineMapper。