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解决. 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM