【BUG集绵】Skipping MapperFactoryBean with name ‘courseAuditMapper’ and ‘com.xuecheng.content.mapper.CourseAuditMapper’ mapperInterface. Bean already defined with the same name!
报错截图:
报错内容:
2023-08-09 15:05:18.308 WARN 1300 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'courseAuditMapper' and 'com.xuecheng.content.mapper.CourseAuditMapper' mapperInterface. Bean already defined with the same name!
2023-08-09 15:05:18.308 WARN 1300 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'courseBaseMapper' and 'com.xuecheng.content.mapper.CourseBaseMapper' mapperInterface. Bean already defined with the same name!
2023-08-09 15:05:18.308 WARN 1300 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'courseCategoryMapper' and 'com.xuecheng.content.mapper.CourseCategoryMapper' mapperInterface. Bean already defined with the same name!
2023-08-09 15:05:18.308 WARN 1300 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'courseMarketMapper' and 'com.xuecheng.content.mapper.CourseMarketMapper' mapperInterface. Bean already defined with the same name!
2023-08-09 15:05:18.308 WARN 1300 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'coursePublishMapper' and 'com.xuecheng.content.mapper.CoursePublishMapper' mapperInterface. Bean already defined with the same name!
2023-08-09 15:05:18.309 WARN 1300 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'coursePublishPreMapper' and 'com.xuecheng.content.mapper.CoursePublishPreMapper' mapperInterface. Bean already defined with the same name!
2023-08-09 15:05:18.309 WARN 1300 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'courseTeacherMapper' and 'com.xuecheng.content.mapper.CourseTeacherMapper' mapperInterface. Bean already defined with the same name!
2023-08-09 15:05:18.309 WARN 1300 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'mqMessageHistoryMapper' and 'com.xuecheng.content.mapper.MqMessageHistoryMapper' mapperInterface. Bean already defined with the same name!
2023-08-09 15:05:18.309 WARN 1300 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'teachplanMapper' and 'com.xuecheng.content.mapper.TeachplanMapper' mapperInterface. Bean already defined with the same name!
2023-08-09 15:05:18.309 WARN 1300 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'teachplanMediaMapper' and 'com.xuecheng.content.mapper.TeachplanMediaMapper' mapperInterface. Bean already defined with the same name!
2023-08-09 15:05:18.309 WARN 1300 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'teachplanWorkMapper' and 'com.xuecheng.content.mapper.TeachplanWorkMapper' mapperInterface. Bean already defined with the same name!
2023-08-09 15:05:18.309 WARN 1300 --- [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in '[com.xuecheng.**.mapper]' package. Please check your configuration.
报错释疑:Bean重复注入
解决办法:从注入Bean的地方开始排查,一般是加注了@MapperScan的区域,比如我的恰巧是在:
修改为:
项目重启OK