zoukankan      html  css  js  c++  java
  • Field baseMapper in com.baomidou.mybatisplus.extension.service.impl.ServiceImpl required a single bean, but xx were found:

    在学习使用 mybatis-plus 时,遇到一个奇怪的异常 如 代码一:

    代码一:

    Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
    2019-07-17 09:16:28.739 ERROR 9800 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 
    
    ***************************
    APPLICATION FAILED TO START
    ***************************
    
    Description:
    
    Field baseMapper in com.baomidou.mybatisplus.extension.service.impl.ServiceImpl required a single bean, but 3 were found:
        - miguBusiHisMapper: defined in file [D:workspaceIdeaywjc-refactor	argetclassescomguollmodulesmiguProjectmapperMiguBusiHisMapper.class]
        - miguBusiInfoMapper: defined in file [D:workspaceIdeaywjc-refactor	argetclassescomguollmodulesmiguProjectmapperMiguBusiInfoMapper.class]
        - sysUserMapper: defined in file [D:workspaceIdeaywjc-refactor	argetclassescomguollmodulessysmanagemapperSysUserMapper.class]
    
    
    Action:
    
    Consider 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
    
    
    Process finished with exit code 1

    该错误怎么解决,求大佬指点

     
  • 相关阅读:
    C# 获取本地电脑所有的盘符
    C#winform程序安装在默认路径提示权限不足的问题
    BadImageFormatException异常处理
    未能找到元数据文件解决办法
    [转]DllImport属性详解
    九度oj1163题
    一致性哈希
    salt-stack部署
    查询系统支持的最大线程和进程数量
    Linux 单机测试 RS232 串口
  • 原文地址:https://www.cnblogs.com/zhangzhonghui/p/11199183.html
Copyright © 2011-2022 走看看