首页 > 技术文章 > maven管理的项目出现Error configuring application listener of class org.springframework.web.context.ContextL

front-end-develop 2017-07-06 15:38 原文

eclipse里用maven管理的项目,在运行的时候出现

Error configuring application listener of class org.springframework.web.context.ContextLoaderListener  

然后我看了一篇博客(http://blog.163.com/gr_neverlose/blog/static/2350904320099301732573/),意思是spring.jar这个包在发布的时候没有被放入war。如果是maven管理的项目,可以看看这个项目的部署参数里有没有加入所有maven的包。具体步骤如下:
右键项目->Properties->Deployment Assembly,看看有没有Maven  Dependencies 
 
没有的话,点Add,选Java Build Path Entries ,拉到最下面,就可以看到Maven Dependencies,这样添加进去就可以了。

推荐阅读