一、提示如下:Skipping MapperFactoryBean with name 'XXX' and 'xx.xx..' mapperInterface. Bean already defined with the same name!
二、原因分析:提示很明顯,說明是重復往容器里注冊了名稱一樣的bean。檢查發現,springboot啟動配置和Mybatis Plus配置都加了@MapperScan注解
三、解決方案:去除其中一個即可,我這里去除的是springboot啟動配置的@MapperScan注解