maven项目,正常在main方法中运行正常,部署到tomcat运行时就抛出class not found异常

Eclipse中Maven项目无法在Tomcat中运行

  出现ClassNotFound异常

  看看异常信息,都是Maven依赖包中的类,项目->属性->Deployment Assembly->Add->Java Build Path Entries-> Maven Dependencies -> Finish ->OK

  再次运行,OK!

你可能感兴趣的:(maven项目,正常在main方法中运行正常,部署到tomcat运行时就抛出class not found异常)