Annotation-specified bean name 'drugInfoService' for bean class conflicts with existing

来源:互联网 发布:centos 重命名文件夹 编辑:程序博客网 时间:2024/05/29 02:51

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [D:\apache-tomcat-8.0.37-windows-x64\apache-tomcat-8.0.37\webapps\fuyang\WEB-INF\classes\spring-mvc-hibernate.xml]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name ‘drugInfoService’ for bean class [com.grain.it.service.impl.DrugManagementServiceImpl] conflicts with existing, non-compatible bean definition of same name and class [com.grain.it.service.impl.DrugInfoServiceImpl]
name为 ‘drugInfoService’的注解有重复,编译会通过,但启动程序会报错

0 0