[Solved] Error creating bean with name ‘fileVisitController‘ defined in file

When importing the jar package from nexus into the local project, an error occurred during startup:

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.

After troubleshooting, it is found that the mybatis-conf.xml file in the jar package has the same name as the XML file in other jar packages;

So, change mybatis-conf.xml to mybatis-conf-lct.xml The XML program can start normally

Read More: