org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class

启动eclipse项目报

说找不到某类,但是实际情况是有的。

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.xm.hrs.cmd.UuidGenerator] for bean with name 'uuidGenerator' defined in URL [jar:file:/D:/XM_Project/XM_HRM/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/xmhrs-manager/WEB-INF/lib/xmhrs-core-0.0.1-SNAPSHOT.jar!/spring-activiti.xml]; nested exception is java.lang.ClassNotFoundException: com.xm.hrs.cmd.UuidGenerator

原因是,tomcat配置是选择自带的jdk,导致的。部署项目默认自带的jdk,先将自己配置的tomcat删除,重新配置

然后选一下自己的jdk版本,部署就好了、

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class_第1张图片

你可能感兴趣的:(Java)