Java-异常org.springframework.beans.factory.BeanDefinitionStoreException
·
一、异常日志
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.xxx.frond.company.PlatformCompanyApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'jedisUtil' for bean class [com.xxx.trip.common.component.JedisUtil] conflicts with existing, non-compatible bean definition of same name and class [com.xxx.frond.company.component.JedisUtil]
二、异常原因
引入新的依赖包,文件冲突,版本不一致
三、解决方法
1、保持版本一致(不好保证)
2、排除新依赖包中的冲突jar包(前提是jar包内部未使用)
四、建议
新的依赖包是内部自研工具包,最好只提供基础精简的功能,不要再过多引入其它内部自研工具包,不然提供给上层服务很难处理混乱的依赖关系
文章仅作为个人学习整理,欢迎指正
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)