场景:从svn中检出maven项目到本地,导入到eclipse中运行,启动tomcat时报错:

Can‘t find class [××] for bean with name '××' defined in class  path resource[xx]

解决方案:经检查发现,在eclipse中并没有生成Java文件对应的.class文件。

1.选中项目右键--》run as --》maven build --》操作如下图

启动maven项目在eclipse中报错 Can‘t find class [×××] for bean with name '××' defined in class path resource

2。点击上图中的run,等命令执行结束,把项目重新部署到tomcat上启动即可。 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2021-10-25
  • 2021-09-22
  • 2021-06-15
  • 2021-06-30
猜你喜欢
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2022-01-23
  • 2022-03-10
相关资源
相似解决方案