在学习使用 mybatis-plus 时,遇到一个奇怪的异常 如 代码一:
代码一:
1Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 22019-07-17 09:16:28.739 ERROR 9800 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : 3 4*************************** 5APPLICATION FAILED TO START 6*************************** 7 8Description: 9 10Field baseMapper in com.baomidou.mybatisplus.extension.service.impl.ServiceImpl required a single bean, but 3 were found: 11 - miguBusiHisMapper: defined in file [D:\workspaceIdea\ywjc-refactor\target\classes\com\guoll\modules\miguProject\mapper\MiguBusiHisMapper.class] 12 - miguBusiInfoMapper: defined in file [D:\workspaceIdea\ywjc-refactor\target\classes\com\guoll\modules\miguProject\mapper\MiguBusiInfoMapper.class] 13 - sysUserMapper: defined in file [D:\workspaceIdea\ywjc-refactor\target\classes\com\guoll\modules\sysmanage\mapper\SysUserMapper.class] 14 15 16Action: 17 18Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed 19 20 21Process finished with exit code 1
该错误怎么解决,求大佬指点