Annotation-specified bean name 'userDaoImpl' for bean class [***] conflicts with existing, non-compatible bean definition of same name and class [***]

使用Spring开发的时候报错如下:

Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'userDaoImpl' for bean class [cn.arebirth.impl.UserDaoImpl] conflicts with existing, non-compatible bean definition of same name and class [cn.arebirth.dao.impl.UserDaoImpl]

 

排错思想:

  Spring Bean管理的对象名称相同了,也就是说有两个类的名字相同。

posted @ 2019-11-11 16:52  Arebirth  阅读(...)  评论(... 编辑 收藏