mybatis报错 Specified class is an interface
本文转自:http://blog.csdn.net/u014331288/article/details/53869303
1.错误原因
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'admUserMapper' defined in file 
[E:\idea_soft\workspace\xxxx-mircoservices\i\classes\main\com\imassbank\admin\mapper\AdmUserMapper-\classes\main\com\admin\mapper\AdmUserMapper.class]: 
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: 
Failed to instantiate [com.xxxxxx.mapper.AdmUserMapper]: Specified class is an interface
2.原因以及解决方案
1)原因:AdmUserMapper有重复的, 例如 AdmUserMapper 在 a工程中有 但是 在b工程中 并且 叫相同的名字 导致 spring 在加载时 调用mapper解析器 导致出错
2)解决方法 重命名
mybatis报错 Specified class is an interface的更多相关文章
- mybatis报错 Error instantiating interface com.atguigu.mybatis.dao.DepartmentMapper with invalid types () or values ()
		mybatis报错 Error instantiating interface com.atguigu.mybatis.dao.DepartmentMapper with invalid types ... 
- oracle+mybatis报错:BindingException("Invalid bound statement (not found): ")
		oracle+mybatis报错:BindingException("Invalid bound statement (not found): ") 从mysql转到oracle数 ... 
- mybatis报错Mapped Statements collection does not contain value for com.inter.IOper
		首页 > 精品文库 > mybatis报错Mapped Statements collection does not contain value for com.inter.IOper m ... 
- mybatis报错:Invalid bound statement (not found)
		mybatis报错:Invalid bound statement (not found)的原因很多,但是正如报错提示一样,找不到xml中的sql语句,报错的情况分为三种: 第一种:语法错误 Java ... 
- Springboot项目下mybatis报错:Invalid bound statement (not found)
		mybatis报错:Invalid bound statement (not found)的原因很多,但是正如报错提示一样,找不到xml中的sql语句,报错的情况分为三种: 第一种:语法错误 Java ... 
- mybatis报错:A query was run and no Result Maps were found for the Mapped Statement、、Property [login_ip] not found on type [com.thinkgem.jeesite.common.permission.entity.PremissUser]问题解决
		今天在做ssm项目的时候出现了: 先是出现 了错误: mybatis报错:A query was run and no Result Maps were found for the Mapped St ... 
- Mybatis   报错
		Mybatis 报错 builder.BuilderException: Error parsing SQL Mapper Configuration Caused by: org.apache.ib ... 
- Mybatis报错:Could not find resource mybatis-conf.xml
		Mybatis报错:Could not find resource mybatis-conf.xml 报错截图: 报错内容: java.io.IOException: Could not find r ... 
- 解决Mybatis 报错Invalid bound statement (not found)
		解决Mybatis 报错Invalid bound statement (not found) 出现此错误的原因 1.xml文件不存在 2.xml文件和mapper没有映射上 namespace指定映 ... 
随机推荐
- struts2必要的包
			想正常使用struts2.1.6,至少需要如下6 个jar包: struts2-core-2.1.6.jar freemarker-2.3.13.jar commons-logging-1.0.4.j ... 
- Android之与当前连接的wifi进行文件夹的浏览与传输
			先上传jar文件:ConnectWifi.jar.zip 上传源文件:org.zip 使用实例及相应的注释: import java.io.File; import java.net.InetAddr ... 
- [Linux]   Systemd 入门教程:实战篇
			reference : http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-part-two.html 上一篇文章,我介绍了 Systemd ... 
- 开源项目-SlideMenu和actionbarsherlock的配置
			SlidingMenu 是github上一个非常优秀的开源库,利用它可以很方便的实现左右侧滑菜单的效果,现在这个基本上应用的标配了,如果一个App没有滑动效果基本上是不可能的,中国人都是本着人无我有, ... 
- 关于css优先级
			css的优先级从低到高依次是:内部样式表的优先级为(1,0,0,0),id选择器优先级为(0,1,0,0),class选择器为(0.0,1,0),tag标签为(0.0,0,1).除此之外,!impor ... 
- 输错密码?这个 sudo 会“嘲讽”你
			导读 你在 Linux 终端中会有很多的乐趣.我今天要讲的不是在终端中跑火车.我今天要讲的技巧可以放松你的心情.你学习过如何在命令行中增加 sudo 命令的超时,今天的文章中,我会向你展示如何让 su ... 
- typescript 的一种引入文件的方式 Triple-Slash Directives
			---恢复内容开始--- /// reference 原文: https://www.typescriptlang.org/docs/handbook/triple-slash-directives. ... 
- POJ 1265:Area
			Area Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 4725 Accepted: 2135 Description ... 
- 【精】C语言之变量存储类型
- MYSQL 表中汉字写入或字段赋值时乱码情况排误
			-- 当改动字段值.或是直接写入时,汉字变成乱码情况 .[可注意一下数据库名,记得改动] -- 当字符顺序对汉字不兼容时,可能直接导致乱码情况发生. 最好做到库.表.字段(字符类型)排序规则是否一致 ... 
