eclipse +maven+web应用 +tomcat 找不到jar包

eclipse +maven+web应用 +tomcat ,spring的jar包都依赖于Maven Dependencies,

 

在 web应用 右键->Run as -> Run on Server情况下,会找不到WebContent/WEB-INF/lib下的jar,这个目录的确也没有放jar包。

 

处理方法:Properties->deployment assembly-> add ->java build path entries ->选择 maven Dependencies。

要重新发布应用才会生效

猜你喜欢

转载自junqiang.iteye.com/blog/2213635