1.UserMapper is not known to the MapperRegistry.mybatis
错误缘由:a.mapperxml app
<mapper namespace="name">
b.主配置没添加mapperxml spa
<!-- 加载映射文件 --> <mappers> <mapper resource="cn/itming/mybatis/mapper/User.xml"/> </mappers>