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

错误:

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]

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

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

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

...

}

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

posted @ 2016-12-21 10:17  orac  阅读(2802)  评论(0编辑  收藏  举报