启动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

相关文章:

  • 2021-10-30
  • 2021-08-18
  • 2021-07-28
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-06-13
  • 2021-10-27
  • 2021-07-14
相关资源
相似解决方案