ConflictingBeanDefinitionException | 运行SpringBoot项目时报错bean定义冲突解决方案
具体报错:
Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name ‘CommissionMapperImpl’ for bean class [com.xxx.mapper.carrier.CommissionMapperImpl] conflicts with existing, non-compatible bean definition of same name and class [com.xxx.mapper.CommissionMapperImpl]…
报错说什么由于 bean 定义冲突导致的,但我只是把mapperImpl挪到了别的包里而已,别的什么也没动。怀疑可能是编译的问题。
解决方案
先clean项目
再compile项目
等待编译完,再运行,就好啦
原文地址:https://blog.csdn.net/qq_61551948/article/details/142354679
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!