最近一直用SpringMvc+Mybabis做项目,见同事一直报Type interface XXXMapper is not known to the MapperRegistry.这个错误,google了半天,网上的说法都是说Mapper xml中的namespace对应的实体类的路径不对,查看了半天一直找不到错误,debug了半天后来终于发现了问题,问题所在就是:我的项目依赖的有两个jar包,获取sqlSession的方式都是
InputStream inputStream = Resources.getResourceAsStream(config);
SqlSessionFactorysqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
getResourceAsStream中是MapperConfig的文件名,依赖的两个jar包各自有一个MapperConfig.xml,该文件中引入的xxxxmapper.xml不同,导致调用的时候只加载了一个MapperConfig.xml中的mapper.xml,对应的mapper没有注册到mybatis的MapperRegistry中所以会一直报Type interface XXXMapper is not known to the MapperRegistry.特此收录一把,仅供参考。
转载前请指明本文地址:http://anonymman.iteye.com/blog/2138316
相关推荐
gho封装教程,不错,讲述了怎么封装gho的,可以参考一下
Delphi's THandle type when a HWND is passed to a function. E.g.: if (DragDetectPlus(THandle(MyControl->Handle), Point(X, Y))) { ... } * Virtual File Stream formats can only be pasted from the ...
This book explains how to take full advantage of the revolutionary Oracle Wait Interface to quickly pinpoint--and solve--core problems and bottlenecks, and increase productivity exponentially.
The MAC-PHY signal interface consists of the Data Interface including an 8-bit data bus, the Control Interface, the CCA Interface and the Management Interface. The Data Interface, which is used to ...
This book is for everyone who needs to test the web. As a tester, you'll automate your tests. As a developer, you'll build more robust solutions. And as a team, you'll gain a vocabulary and a means to...
编译通过的Inno setup Inno Setup consists of five projects: Compil32.dpr - This is the GUI front-end for the compiler....various structures and function declarations used to interface to the DLL.
The PHY Interface for the PCI Express Architecture (PIPE) is intended to enable the development of functionally equivalent PCI Express PHY's. Such PHY's can be delivered as discrete IC's or as ...
Note that unlike other application components, calls on to the IBinder interface returned here may not happen on the main thread of the process. More information about this can be found in Application...
Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked. doFilter(ServletRequest, ...
pb连接SQLSERVER2005,提示如下错误:Unable to load the requested Database interface.Please make sure both the interface and client software are properly installed. 解决办法:下载ntwdblib.dll然后将其copy...
The core utilities, known as userland, provide the interface that identifies FreeBSD, both user interface, shared libraries and external interfaces to connecting clients. Currently, 162 people are ...
This document describes the GAMS interface to OSL. OSL is the IBM Optimization Subroutine Library, containing high performance solvers for LP (linear programming), MIP (mixed integer programming) and ...
The objective of this book is to introduce assembly language programming. Assembly language is very closely linked to the underlying processor architecture and design. Popular processor designs can be...
An Introduction to the .C Interface to R
This book is written with two objective in mind, first, to introduce the reader to the concepts of programming using C#, second, to put into practice the concepts in a fun and entertaining way by ...
This document describes the structure of the Application Binary Interface (ABI) for the ARM architecture, and links to the documents that define the base standard for the ABI for the ARM Architecture...
一本讲UI知识的书
The Way to Go,: A Thorough Introduction to the Go Programming Language 英文书籍,已Cross the wall,从Google获得书中源代码,分享一下。喜欢请购买正版。 目录如下: Contents Preface......................
SLPS.Matlab.Simulink.To.Pspice.Interface.v2.65.5.rar,用于Simulink.To.Pspice的联合仿真接口,能够实现系统级仿真,但需要Pspice 及matlab有相应的授权。