使用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管理的對象名稱相同了,也就是說有兩個類的名字相同。