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

相關文章
相關標籤/搜索