首页 > 其他分享 >SpringBoot项目启动失败报错Annotation-specified bean name ‘xx‘ for bean class [xxx] conflicts with existing

SpringBoot项目启动失败报错Annotation-specified bean name ‘xx‘ for bean class [xxx] conflicts with existing

时间:2023-05-28 17:01:53浏览次数:40  
标签:name peony xxx bean service 报错 specified class

Annotation-specified bean name 'datahubServiceImpl' for bean class [com.peony.common.service.impl.DatahubServiceImpl] conflicts with existing, non-compatible bean definition of same name and class [com.peony.common.service.DatahubServiceImpl]

 

1、有两个同名的注入类

2、如果确实没有的话,就重新编译一下,再不行就重启编辑器



标签:name,peony,xxx,bean,service,报错,specified,class
From: https://blog.51cto.com/u_15242378/6365560

相关文章

  • 报错ImportError: cannot import name 'Iterable' from 'collections' in Python
    参考https://stackoverflow.com/questions/72032032/importerror-cannot-import-name-iterable-from-collections-in-python答案为3.10版本的python把Iterable从collections去除了,原答案粘贴如下:文字版和截图 TheIterableabstractclasswasremovedfromcollectionsin......
  • Synology Drive Client 报错 "连接失败。请检查您的网络设置并再试一次。"
    SynologyDriveClient在连接Drive时报错"连接失败。请检查您的网络设置并再试一次。"但是5001端口是开着的抓个包看看发现他没有去请求5001而是先走到了6690这是群晖官方对6690的解释添加6690的映射规则就好了......
  • java XML字符串和bean实体类互转
    pom引入依赖<dependency><groupId>com.fasterxml.jackson.dataformat</groupId><artifactId>jackson-dataformat-xml</artifactId><version>2.13.1</version></dependency>实体类p......
  • 202305280952-《远程Linux服务器——安装tomcat8、jdk1.8、mysql5——mysql启动报错》
    在bash执行"systemctlstartmysqld"   提示:“Jobformysqld.servicefailedbecausethecontrolprocessexitedwitherrorcode.See"systemctlstatusmysqld.service"and"journalctl-xe"fordetails.”   /var/lib/mysql权......
  • Centos7.6 ipmi驱动报错解决
    现象描述如上图,找不到这个设备的信息,dmesg中也提示没有此设备排查过程1.在内核代码内进行追踪,发现dmi_find_device时未找到设备2.而且使用dmidecode命令时发现错误:WrongDMIstructureslength:1104bytesannounced,only32bytesavailable.Invalidentrylength(0).DMIta......
  • XXX项目前端开发样式统一规范
    前端开发样式规范参考资料:https://element.eleme.cn/#/zh-CN/component/form规范1:报错提示统一用浅红色,成功提示为绿色,警告性提示为橙色规范2: 页面有多个必填字段未填写,一次性提示,同时填写文本框爆红,文本框下方有红字提醒红字提醒可按需展示,本文框间距有限,红字展示可能......
  • VueCLI报错:ERROR in [eslint]
    配置好自己的组件后,完全没有任何错误,但是使用npmrunserve时仍然报错ERRORin[eslint] 发现是eslint的错误,其实没有错,只不过Vue检测你的组件名称不符合就不编译了。只需停掉eslint就行(一般开发期间停掉eslint可以保证自定义的变量、组件等也可以运行)先找到vue.config.js--......
  • vivado2019.2对modelsim2019.2编译库全报错解析
    最近在用vivado2019.2编译modelsim2019.2库时,所有库全部报错,查阅了博主们的各种解决办法,最终在一篇文章的评论中找到了解决办法,特此记录问题描述:1、ERROR:[Vivado12-5602]compile_simlibfailedtocompileformodelsimwitherrorinxxxlibraries2、ERROR:[Common17-......
  • Spring源码分析-BeanDefination加载
    ConfigurationClassPostProcessor解析配置类中有两类集合,一类是配置类、另一类是所有已解析的bd从已有bd中过滤配置类​ candidateNames:保存已被解析出来的所有待解析的bd名​ configCandidates:candidateNames经过过滤的所有待解析的配置类bd​ 过滤条件:​ 检查BeanDefi......
  • workbench导入csv文件时候出现的报错
    问题一:解决办法:把csv文件的编码从什么utf-8、gbk更改为gb2312就可以成功导入了。我更改编码的方式是用的VS-code,1.用vscode打开。2.点击右下角编码2.点击通过编码保存,找到gb2312点击保存为新文件就可以成功导入了。问题二:ERROR:Importdatafile:("Column'book_img'specifiedt......