从Nexus中引入jar包到本地项目中,启动时出现错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'fileVisitController' defined in file [D:\dengkun\dengkun_server\dengkun-
api\target\classes\com\dengkun\api\controller\auxiliary\FileVisitController.class]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[com.dengkun.api.controller.auxiliary.FileVisitController]: Constructor threw exception;
nested exception is org.apache.ibatis.binding.BindingException: Type interface
com.dengkun.dao.FileVisitMapper is not known to the MapperRegistry.
经过排查发现jar包中的 mybatis-conf.xml 文件与其它jar包中的xml文件重名;
于是,把 mybatis-conf.xml 改为 mybatis-conf-lct.xml 程序能够正常启动