FAQ(14):Type interface com.test.dianzi.dao.spare_partsDao is not known to the MapperRegistry.
来源:互联网 发布:阿里云 centos mysql 编辑:程序博客网 时间:2024/04/29 12:12
Log:
org.apache.ibatis.binding.BindingException: Type interface com.test.dianzi.dao.spare_partsDao is not known to the MapperRegistry.at org.apache.ibatis.binding.MapperRegistry.getMapper(MapperRegistry.java:47)at org.apache.ibatis.session.Configuration.getMapper(Configuration.java:717)at org.apache.ibatis.session.defaults.DefaultSqlSession.getMapper(DefaultSqlSession.java:292)at com.test.dianzi.entities.spare_partsTest.test(spare_partsTest.java:32)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)at org.junit.runners.ParentRunner.run(ParentRunner.java:363)at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
解决:
原因:定义的接口spare_partsDao 不符合Mapper接口的4个开发规范之一:
Mapper.xml 中的 namespace = mapper接口的类路径,写错了!!
具体就是<mapper namespace="cn.itsun.dao.UserDao"> 与UserDao接口的类路径不相同。
阅读全文
0 0
- FAQ(14):Type interface com.test.dianzi.dao.spare_partsDao is not known to the MapperRegistry.
- FAQ(10):Type interface com.smbms.dao.UserMapper is not known to the MapperRegistry.
- mybatis报错Type interface xxx.Dao is not known to the MapperRegistry
- Type interface cn.itsun.dao.UserDao is not known to the MapperRegistry.
- Type interface XXXMapper is not known to the MapperRegistry 解决办法
- Type interface is not known to the MapperRegistry.的解决办法
- Type interface "xxxxxxxx" is not known to the MapperRegistry
- Type interface mapper.XxxMapper is not known to the MapperRegistry.
- Type interface mapper.UserMapper is not known to the MapperRegistry.
- Type interface com.mybatis.mapper.UserMapper is not known to the MapperRegistry. 解决方法
- Type interface com.hk.ssm.mapper.StudentMapper is not known to the MapperRegistry.
- Type interface com.binarysoft.service.region.RegionDAO is not known to the MapperRegistry.
- Type interface com.mybatis.mapper.StudentMapper is not known to the MapperRegistry
- Type interface com.mapper.GradeMapper is not known to the MapperRegistry的解决办法
- Type interface dxm.com.mapper.UserMapperI is already known to the MapperRegistry.
- Mybatis报错——Type interface com.mapper.EmployeeMapper is already known to the MapperRegistry.
- Type interface XXXMapper is not known to the MapperRegistry.的解决办法。
- Mybatis出现Type interface XXXMapper is not known to the MapperRegistry.的解决办法。
- from sklearn.cross_validation import train_test_split
- Toast 解决连续显示
- 更新HIve表的简单方法2
- SQL Server Select中函数执行的次序
- 简单的popupwindow提示框
- FAQ(14):Type interface com.test.dianzi.dao.spare_partsDao is not known to the MapperRegistry.
- 小班研讨课的感受
- Java基础语法篇(4)
- cocos2dx : 世界坐标和模型坐标.
- 决策树原理与python实现
- caffe 入门(1)
- 最大匹配 人员分配
- php经度 纬度距离计算 , php 二维数组排序
- 凸包的某些用处