文章目录

  • 报错:
  • 解决

报错:

Description:

Field userService in com.atmae.agriculture.controller.UserController required a single bean, but 2 were found:
- userServiceImpl: defined in file [D:\JAVA_Final_Mae\srt\agriculture\target\classes\com\atmae\agriculture\service\impl\UserServiceImpl.class]
- IUserService: defined in file [D:\JAVA_Final_Mae\srt\agriculture\target\classes\com\atmae\agriculture\service\IUserService.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

Description:Field userService in com.atmae.agriculture.controller.UserController required a single bean, but 2 were found:- userServi

springboot启动报错Field *Service in *.*.controller.*Controller required a single bean, but 2 were found:相关推荐

  1. SpringBoot启动报错Field service in XXX required a bean of XXX that could not be found.

    原始错误: demo.printing.yinbao.controller.YinbaoSpecificationController中的现场服务需要找不到类型为" demo.printin ...

  2. SpringBoot启动报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean

    SpringBoot启动报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean ...

  3. springboot 启动报错Field XXX required a bean of type XXX that could not be found的解决方案总结

    1.检查 各个层的注解,尤其是Mapper层,看是否遗漏 @Mapper/@Repository 2.检查启动类注解,如若没问题,可加 @ComponentScan("需要扫描的包路径&qu ...

  4. IDEA springboot启动报错java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path

    IDEA springboot启动报错: java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path: [D:\Java\bi ...

  5. SpringBoot启动报错Could not resolve placeholder ‘XXX.XXX‘ in value

    SpringBoot启动项目时报错: Exception encountered during context initialization - cancelling refresh attempt: ...

  6. springboot启动报错Logbook

    springboot启动报错 APPLICATION FAILED TO START Description: Field logbookHttpRequestInterceptor in com.j ...

  7. springboot启动报错:Unregistering JMX-exposed beans on shutdown

    环境 1,maven 3.5.0 2,eclipse 4.7.1 3,spring boot 1.5.9.RELEASE springboot启动报错 按照spring 用户手册创建新的spring ...

  8. SpringBoot启动报错:Parameter 0 of method hmset in com.qcby.rbac.util.RedisUtils required a bean of type

    SpringBoot启动报错,报错信息如下: 报错是由于A类中定义了含参数的构造函数,Spring自动构造和注入时未为该Bean传入参数,引起报错. 查了很多资料,最后发现,我是因为注释的时候没有把@ ...

  9. 启动Spring项目报错,Springboot启动报错 Disconnected from the target VM 解决过程

    启动Spring项目报错,Springboot启动报错 Disconnected from the target VM 解决过程 大概率是缺少了一下依赖 <dependency><g ...

最新文章

  1. 回顾2020,我国无人机经历了四大新变化
  2. 由浅入深CIL系列:6.For和Foreach的CIL结构组成以及运行效率
  3. PostgreSQL在何处处理 sql查询之五十二
  4. centos7最小安装没有 ifconfig netstat 命令
  5. 最大字段和各种不同算法实现(参考编程珠玑)
  6. poj 1270(toposort)
  7. 商汤 AI TECH DAY丨见大咖、拿OFFER、体验AI,一次就够!
  8. 四种优秀的数据库设计工具
  9. wgs84坐标系和国内地图坐标系的转换
  10. 用 Seaborn 做数据可视化(1)——绘图功能(1)可视化统计关系:sns.relplot()
  11. 阿里云kafka安装
  12. Typora安装包64位---百度网盘下载
  13. 运算放大电路(比例运算电路)
  14. 地图功能全解(高德地图)
  15. BZOJ 1812 IOI 2005 riv
  16. 软件测试笔记(十六)- 缺陷轰炸和beta测试
  17. 顺丰java_顺丰API调用java版
  18. 出来找工作,去创业公司好吗?
  19. 酷狗android平板,安卓平板车载共享 体验酷狗音乐HD版
  20. 策略验证_买入口诀_双管齐下买进不怕

热门文章

  1. c++ 半透明显示窗体
  2. android 画 月牙曲线,几何画板如何给月牙图形填充颜色
  3. 一位大学老师写给大学生的100条肺腑之言
  4. centos 7 配置mongodb副本集
  5. 魔兽地图头文件被破坏之后如何打开地图
  6. 一首广西南宁原创歌曲 醉鬼!!(懂白话的强推)修改歌词
  7. 围城书评_书评:移动Web开发
  8. com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:Unrecognized field
  9. 视频教程-主流前端框架下ArcGIS API for JavaScript的开发-其他
  10. “windows无法连接到打印机”问题的解决