天天看點

non-compatible bean definition of same name and class 

Spring報錯:Failed to parse configuration class

 nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name xxxx for bean class [Spring.day03.dao.impl.AccountDaoImpl3New] conflicts with existing, non-compatible bean definition of same name and class 

原因:檢查一下被引用bean名稱是不是有重複的