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