tomcat启动报错:注释指定的bean类.与现有的冲突.相同的名称和类

错误:java

Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/business/config/web-application-config.xml]; nested exception is java.lang.IllegalStateException: Annotation-specified bean name 'com.chinauip.cfc.business.labre.lwpq.service.AddDataHandler' for bean class [com.chinauip.cfc.business.labre.lwpq.service.LwpqCancelHandler] conflicts with existing, non-compatible bean definition of same name and class [com.chinauip.cfc.business.labre.lwpq.service.AddDataHandler]web

检查bean类AddDataHandler发现没什么问题app

再检查LwpqCancelHandler类发现神注解....copy的结果.ui

@Service("com.chinauip.cfc.business.labre.lwpq.service.AddDataHandler")
public class LwpqCancelHandler extends AbstractApplicationHandler {spa

...xml

}ip

修改:注解和类名一致.BUG解决. ci

相关文章
相关标签/搜索