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管理的对象名称相同了,也就是说有两个类的名字相同。

猜你喜欢

转载自www.cnblogs.com/arebirth/p/springbeannamesameerror.html
今日推荐