项目起不来 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

问题:项目开始起来啦,但是加载时间特别短,看了控制台也没有报错,然后瞪大眼睛看了,就找到:The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [D:\Java\jdk1.8.0_131\bin;C:....,就觉得是Tomcat没有装好,重新安装tomcat后,就报了其他错

项目起不来 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

原因:网上查询资料后,原来发现是工程部署后再WEB-INF文件夹下没有生成lib目录

方法:右键项目属性,选择Deployment Assembly(部署装配)后点Add按钮,选择Java Build Path Entires(路径目录),点击next ,选择Mave Dependencies后finish 

重新部署后问题解决