mybatis 报错 Specified class is an interface
来源:互联网 发布:淘宝特卖鱼具 编辑:程序博客网 时间:2024/06/06 08:29
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)解决方法 重命名
0 0
- mybatis 报错 Specified class is an interface
- mybatis报错:Could not instantiate bean class [Dao.stuDao]: Specified class is an interface
- Mybatis,Specified class is an interface
- Specified class is an interface
- Specified class is an interface
- SpringMvc报错解决:Failed to instantiate [java.util.List]: Specified class is an interface
- springboot Mapper: Specified class is an interface
- spring中出现“Specified class is an interface”
- 错误:Could not instantiate bean class [java.util.List]: Specified class is an interface
- Could not instantiate bean class [javax.servlet.ServletContext]: Specified class is an interface
- Could not instantiate bean class [java.util.List]: Specified class is an interface
- springMVC接受list报错:Could not instantiate bean class [java.util.List]: Specified class is an interf
- 关于运行期异常:Failed to instantiate [java.util.List]: Specified class is an interface
- 关于运行期异常:Failed to instantiate [java.util.List]: Specified class is an interface
- 关于运行期异常:Failed to instantiate [java.util.List]: Specified class is an interface
- 解决Failed to instantiate [java.util.List]: Specified class is an interface问题
- Failed to instantiate [org.springframework.data.domain.Pageable]: Specified class is an interface
- Failed to instantiate [org.springframework.data.domain.Pageable]: Specified class is an interface
- Python之配置文件模块 ConfigParser
- Spring+Websocket+Redis
- 第23天 网络编程、udp、tcp,ip
- MAC电脑,sublimeText2安装package control和 pylinker 、 Jedi 插件
- C#多线程同步(一)【计数器】
- mybatis 报错 Specified class is an interface
- 异常继承
- 【逻辑思考】我们要有把坏事看成好事的能力
- nginx搭建支持http和rtmp协议的流媒体服务器之二 【转】
- Thinking in java4 Exception
- 【OpenCV入门教程之八】线性邻域滤波专场:方框滤波、均值滤波与高斯滤波
- c++网络多人五子棋
- 在树莓派上使用Python实现对温度,湿度以及光照强度的实施测量
- 第十二章 迭进