eclipse maven工程报spring ContextLoaderListener异常

2014-11-24 09:04:24 · 作者: · 浏览: 1

症状:

maven web工程,启动server,报ContextLoaderListener异常,部署位置的lib目录里没有工程相关的jar

解决:

方法1
打开eclipse工程目录,在.classpath中添加或修改如下

01

02

03

04

05

06

07

08

09

10

方法2

右键工程,属性

选择 Deployment Assembly点击add选中Maven Dependencies,最后finish。如下图

image
作者:藏言