JAVA Cannot find class [×××] for bean with name '××' defined in class path resource [×××] 问题解决方法


出现大量的:Cannot find class.

Cannot find class [com.supermap.wisdombusiness.core.SuperSpringContext] for bean with name 'springContext' defined in class path resource [spring.xml];
Cannot find class [com.supermap.wisdombusiness.shiro.realm.ShiroDbRealm] for bean with name 'shiroDbRealm' defined in class path resource [spring-hibernate.xml];
Cannot find class [com.supermap.realestate.registration.service.Sender.MQSender] for bean with name 'producerService' defined in class path resource [ActiveMQ.xml]; Cannot find class [com.supermap.realestate.registration.service.Sender.SFTP] for bean with name 'sftp' defined in class path resource [ActiveMQ.xml];
Cannot find class [com.supermap.wisdombusiness.core.SuperSpringContext] for bean with name 'springContext' defined in class path resource [spring.xml];
Cannot find class [com.supermap.realestate.registration.service.Sender.MQSender] for bean with name 'producerService' defined in class path resource [ActiveMQ.xml]; Cannot find class [com.supermap.realestate.registration.service.Sender.SFTP] for bean with name 'sftp' defined in class path resource [ActiveMQ.xml];

排查时候发现配置正确,类也存在。代码无报错情况。

后发现关闭Project Explorer视图需选择Package Explorer CLEAN后重写编译就可以了。


免责声明!

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



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