Type interface **** is not known to the MapperRegistry.
报错信息如上
解决:(很蠢的报错.....改了一小时才看出来....)
//用我的代码举例:在绑定Mapper的时候我绑定的不是Mapper接口而是只写了前面的文件名
//报错:
<mapper namespace="com.example.dao">
//修改:
<mapper namespace="com.example.dao.UserMapper">
Type interface **** is not known to the MapperRegistry.
报错信息如上
解决:(很蠢的报错.....改了一小时才看出来....)
//用我的代码举例:在绑定Mapper的时候我绑定的不是Mapper接口而是只写了前面的文件名
//报错:
<mapper namespace="com.example.dao">
//修改:
<mapper namespace="com.example.dao.UserMapper">