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项目 如果不行就重启(我是重启解决的)

下班~

Annotation-specified bean name.. for bean class ..._第1张图片

Annotation-specified bean name.. for bean class ..._第2张图片

 

你可能感兴趣的:(Java,java,开发语言,后端)