Annotation-specified bean name.. for bean class ...

org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'tmdOcrRecordMapper' for bean class [com.ndmicro.mybatis.ndmicro_tmd.mapper.TmdOcrRecordMapper] conflicts with existing, non-compatible bean definition of same name and class [org.mybatis.spring.mapper.MapperFactoryBean]

org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'tmdOcrRecordMapper' for bean class [com.ndmicro.mybatis.ndmicro_tmd.mapper.TmdOcrRecordMapper] conflicts with existing, non-compatible bean definition of same name and class [org.mybatis.spring.mapper.MapperFactoryBean]
 

意思就是有两个一样名字的bean(注意看看红色字体)然后导致冲突了

但是我找了半天没找到冲突的bean名称

解决方案:clean项目 如果不行就重启(我是重启解决的)

下班~

 

posted @ 2022-01-12 19:24  难忘是想起  阅读(0)  评论(0)    收藏  举报  来源